server 0.0.1
basicserverinfrastructure

include/socket.h

Go to the documentation of this file.
00001 #ifndef __SOCKET_H__
00002 #define __SOCKET_H__
00003 
00004 #include <arpa/inet.h>  /* for in_port_t */ 
00005 
00006 #include "class.h"
00007 #include "logger.h"
00008 
00009 CLASS(Sock) {
00010         Logger             log;
00011         in_port_t          port;
00012         struct sockaddr_in addr;
00013         int                handle;
00014 };
00015 
00016 void socketConnect(Sock this, const char * addr);
00017 void socketListen(Sock this, int backlog);
00018 Sock socketAccept(Sock this, char remoteAddr[16]);
00019 
00020 #endif // __SOCKET_H__
00021 
00022 // vim: set ts=4 sw=4:
00023 
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines