aboutsummaryrefslogtreecommitdiffstats
path: root/progs/xdemos/ipc.h
blob: 3f434457c6fe5ceb523b54350937877b66ea04cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef IPC_H
#define IPC_H


extern int MyHostName(char *nameOut, int maxNameLength);
extern int CreatePort(int *port);
extern int AcceptConnection(int socket);
extern int Connect(const char *hostname, int port);
extern void CloseSocket(int socket);
extern int SendData(int socket, const void *data, int bytes);
extern int ReceiveData(int socket, void *data, int bytes);
extern int SendString(int socket, const char *str);
extern int ReceiveString(int socket, char *str, int maxLen);


#endif /* IPC_H */