~ubuntu-branches/ubuntu/oneiric/mesa-demos/oneiric

« back to all changes in this revision

Viewing changes to src/xdemos/ipc.h

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2010-09-27 16:18:27 UTC
  • Revision ID: james.westby@ubuntu.com-20100927161827-1yfgolc1oy9sjhi8
Tags: upstream-8.0.1
ImportĀ upstreamĀ versionĀ 8.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 */