Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
inet.h
Go to the documentation of this file.
1 #ifndef __INET_H__
2 #define __INET_H__
3 
4 bool INET_BytesToRead( int socket );
5 
6 bool INET_Read( int socket, char *data, int bytestoread );
7 
8 int INET_Recv( int socket, char *data, int bytestoread );
9 
10 int INET_Write( int socket, int bytestowrite, const char *data );
11 
12 int INET_listen( unsigned short port, const char *addr = NULL );
13 int INET_Accept( int hServerSocket );
14 
15 int INET_AcceptFrom( unsigned short port, const char *addr = NULL );
16 
17 int INET_ConnectTo( const char *hostname, unsigned short port );
18 
19 char INET_fgetc( int socket );
20 
21 void INET_close( int socket );
22 
23 void INET_startup();
24 
25 void INET_cleanup();
26 #endif
27