Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
netuser.h
Package: export.zip [view]
Upload User: hepax88
Upload Date: 2007-01-03
Package Size: 1101k
Code Size: 1k
Category:
TCP/IP Stack
Development Platform:
Visual C++
- #ifndef _NETUSER_H
- #define _NETUSER_H
- /* Global structures and constants needed by an Internet user process */
- #ifndef _GLOBAL_H
- #include "global.h"
- #endif
- #define NCONN 20 /* Maximum number of open network connections */
- extern int32 Ip_addr; /* Our IP address */
- extern int Net_error; /* Error return code */
- extern char Inet_eol[];
- #define NONE 0 /* No error */
- #define CON_EXISTS 1 /* Connection already exists */
- #define NO_CONN 2 /* Connection does not exist */
- #define CON_CLOS 3 /* Connection closing */
- #define NO_MEM 4 /* No memory for TCB creation */
- #define WOULDBLK 5 /* Would block */
- #define NOPROTO 6 /* Protocol or mode not supported */
- #define INVALID 7 /* Invalid arguments */
- /* Codes for the tcp_open call */
- #define TCP_PASSIVE 0
- #define TCP_ACTIVE 1
- #define TCP_SERVER 2 /* Passive, clone on opening */
- /* Local IP wildcard address */
- #define INADDR_ANY 0x0L
- /* Socket structure */
- struct socket {
- int32 address; /* IP address */
- uint16 port; /* port number */
- };
- /* Connection structure (two sockets) */
- struct connection {
- struct socket local;
- struct socket remote;
- };
- /* In domain.c: */
- int32 resolve(char *name);
- int32 resolve_mx(char *name);
- char *resolve_a(int32 ip_address, int shorten);
- /* In netuser.c: */
- int32 aton(char *s);
- char *inet_ntoa(int32 a);
- char *pinet(struct socket *s);
- #endif /* _NETUSER_H */