From 72c888869f4e5074e57c349ec356798959be791e Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 11 Oct 2007 18:25:12 -0600 Subject: Example of cooperative rendering into one window by two processes --- progs/xdemos/ipc.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 progs/xdemos/ipc.h (limited to 'progs/xdemos/ipc.h') diff --git a/progs/xdemos/ipc.h b/progs/xdemos/ipc.h new file mode 100644 index 0000000000..3f434457c6 --- /dev/null +++ b/progs/xdemos/ipc.h @@ -0,0 +1,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 */ -- cgit v1.2.3