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_file.h
Go to the documentation of this file.
1 #ifndef __INET_FILE_H__
2 #define __INET_FILE_H__
3 
4 bool fNET_BytesToRead( int socket );
5 
6 bool fNET_Read( int socket, char *data, int bytestoread );
7 
8 int fNET_Recv( int socket, char *data, int bytestoread );
9 
10 int fNET_Write( int socket, int bytestowrite, const char *data );
11 
12 int fNET_listen( unsigned short port, const char *addr = NULL );
13 int fNET_Accept( int hServerSocket );
14 
15 int fNET_AcceptFrom( unsigned short port, const char *addr = NULL );
16 
17 int fNET_ConnectTo( const char *hostname, unsigned short port );
18 
19 char fNET_fgetc( int socket );
20 
21 void fNET_close( int socket );
22 
23 void fNET_startup();
24 
25 void fNET_cleanup();
26 #endif
27