acceptSocket.h
00001 #ifndef ACCEPT_SOCKET
00002 #define ACCEPT_SOCKET
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "socketCtrl.h"
00012 #include "socketInit.h"
00013 #include <SDL_net.h>
00014
00015
00016 class AcceptSocket : public SocketInit {
00017 TCPsocket accept_socket;
00018 SDLNet_SocketSet accept_set;
00019
00020 AcceptSocket(void);
00021
00022 public:
00023 AcceptSocket(Uint16 port);
00024 ~AcceptSocket(void);
00025 SocketCtrl* accept(int timeout = 0);
00026 };
00027
00028 #endif
00029