Main Page   Compound List   File List   Header Files   Sources   Compound Members   File Members  

netapi.h

00001 
00025 
00026 #ifndef _NETAPI_H__
00027 #define _NETAPI_H__
00028 
00029 #include "netapi_t.h"
00030 #include "tcpipapi.h"
00031 #include "dos.h"
00032 
00040 int openSocket(int type);
00041 
00048 bool closeSocket(int sockDescr);
00049 
00058 bool bind(int sockDescr, unsigned int localPort);
00059 
00069 bool connect(int sockDescr, char* IPAddress, unsigned int remotePort);
00070 
00081 int TCPSend(int sockDescr,
00082             byte* dataBuffer,
00083             int length,
00084             int flags);
00085 
00097 int TCPReceive(int sockDescr,
00098                byte* dataBuffer,
00099                int length,
00100                int flags,
00101                unsigned long timeout);
00102 
00109 bool TCPAbortConnection(int sockDescr);
00110 
00118 bool TCPCloseLinger(int sockDescr, unsigned int seconds);
00119 
00129 bool TCPSocketReuse(int sockDescr);
00130 
00143 int UDPSend(int sockDescr,
00144             char* IPAddress,
00145             unsigned int remotePort,
00146             byte* dataBuffer,
00147             int length,
00148             int flags,
00149             bool convertPort);
00150 
00163 int UDPReceive(int sockDescr,
00164                byte* dataBuffer, 
00165                int length, 
00166                int flags, 
00167                unsigned long timeout);
00168 
00177 bool listen(int sockDescr, int connections);
00178 
00187 int accept(int sockDescr);
00188 
00194 int waitingBytes(int sockDescr);
00195 
00203 clientInfoPtr getClientInfo();
00204 
00212 errorInfoPtr getErrorInfo();
00213 
00219 int getErrorCode();
00220 
00227 void inet2ascii(unsigned long far* IP, char far* IPAddress);
00228 
00235 bool ascii2inet(char far* IPAddress, unsigned long far* IP);
00236 
00241 void sleep(unsigned int mseconds);
00242 
00252 bool evalError(union REGS* outregs);
00253 
00254 #endif /* _NETAPI_H__ */

Generated at Fri Jun 9 20:55:36 2000 for NETAPI by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999