Brian | 72c8888 | 2007-10-11 18:25:12 -0600 | [diff] [blame] | 1 | #ifndef IPC_H |
| 2 | #define IPC_H |
| 3 | |
| 4 | |
| 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); |
| 14 | |
| 15 | |
| 16 | #endif /* IPC_H */ |