5 extern int MyHostName(char *nameOut
, int maxNameLength
);
6 extern int CreatePort(int *port
);
7 extern int AcceptConnection(int socket
);
8 extern int Connect(const char *hostname
, int port
);
9 extern void CloseSocket(int socket
);
10 extern int SendData(int socket
, const void *data
, int bytes
);
11 extern int ReceiveData(int socket
, void *data
, int bytes
);
12 extern int SendString(int socket
, const char *str
);
13 extern int ReceiveString(int socket
, char *str
, int maxLen
);