summaryrefslogtreecommitdiffstats
path: root/progs/xdemos/ipc.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-11 18:25:12 -0600
committerBrian <[email protected]>2007-10-11 18:25:12 -0600
commit72c888869f4e5074e57c349ec356798959be791e (patch)
tree4edda6dbd141dc28da8ec2db760e94a72ec06e33 /progs/xdemos/ipc.h
parentf1104b079f7992f60925fc6c08544cb8ab3cade4 (diff)
Example of cooperative rendering into one window by two processes
Diffstat (limited to 'progs/xdemos/ipc.h')
-rw-r--r--progs/xdemos/ipc.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/progs/xdemos/ipc.h b/progs/xdemos/ipc.h
new file mode 100644
index 00000000000..3f434457c6f
--- /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 */