Server 0.0.1
HTTP/REST server implementation

include/socket.h

Go to the documentation of this file.
00001 
00025 #ifndef __SOCKET_H__
00026 #define __SOCKET_H__
00027 
00028 #include <arpa/inet.h>  // for in_port_t
00029 
00030 #include "class.h"
00031 #include "logger.h"
00032 
00033 CLASS(Sock) {
00034         Logger             log;
00035         in_port_t          port;
00036         struct sockaddr_in addr;
00037         int                handle;
00038 };
00039 
00040 void socketConnect(Sock this, const char * addr, char (*)[16]);
00041 void socketListen(Sock this, int backlog);
00042 Sock socketAccept(Sock this, char (*remoteAddr)[16]);
00043 
00044 #endif // __SOCKET_H__
00045 
00046 // vim: set ts=4 sw=4:
00047 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines