[go: up one dir, main page]

Menu

[r190]: / grueworld / inet.hpp  Maximize  Restore  History

Download this file

27 lines (17 with data), 715 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef __INET_H__
#define __INET_H__
bool INET_BytesToRead (int socket);
bool INET_Read (int socket, char *data, int bytestoread);
int INET_Recv (int socket, char *data, int bytestoread);
int INET_Write (int socket,int bytestowrite,const char *data);
int INET_listen (unsigned short port, const char *addr=NULL);
int INET_Accept (int hServerSocket);
int INET_AcceptFrom (unsigned short port, const char * addr=NULL);
int INET_ConnectTo (const char * hostname, unsigned short port);
char INET_fgetc (int socket);
void INET_close (int socket);
void INET_startup();
bool INET_QueueReadLine(int socket);
bool INET_ReadLineDone(int socket, char *data, int *size);//pass in max size
void INET_cleanup();
#endif