diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-08-19 03:12:28 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-08-19 03:12:28 +0000 |
commit | 1fd361a1ea06e44286c213ca1f814f49306fdc43 (patch) | |
tree | 64c8c96cf54d8718847339a403e5e67b922e8c3f /converter/ppm/ppmtompeg/headers/psocket.h | |
download | netpbm-mirror-1fd361a1ea06e44286c213ca1f814f49306fdc43.tar.gz netpbm-mirror-1fd361a1ea06e44286c213ca1f814f49306fdc43.tar.xz netpbm-mirror-1fd361a1ea06e44286c213ca1f814f49306fdc43.zip |
Create Subversion repository
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/ppm/ppmtompeg/headers/psocket.h')
-rw-r--r-- | converter/ppm/ppmtompeg/headers/psocket.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/converter/ppm/ppmtompeg/headers/psocket.h b/converter/ppm/ppmtompeg/headers/psocket.h new file mode 100644 index 00000000..214f5dce --- /dev/null +++ b/converter/ppm/ppmtompeg/headers/psocket.h @@ -0,0 +1,41 @@ +#ifndef PSOCKET_H_INCLUDED +#define PSOCKET_H_INCLUDED + +#include <netdb.h> + +void +ReadInt(int const socketFd, + int * const valueP); + +void +ReadBytes(int const fd, + unsigned char * const buf, + unsigned int const nbyte); + +void +WriteInt(int const socketFd, + int const value); + +void +WriteBytes(int const fd, + unsigned char * const buf, + unsigned int const nbyte); + +void +ConnectToSocket(const char * const machineName, + int const portNum, + struct hostent ** const hostEnt, + int * const socketFdP, + const char ** const errorP); + +void +CreateListeningSocket(int * const socketP, + int * const portNumP, + const char ** const errorP); + +void +AcceptConnection(int const listenSocketFd, + int * const connectSocketFdP, + const char ** const errorP); + +#endif |