00001 #ifndef __J2K__Unix_Socket_Receiver_HPP__ 00002 #define __J2K__Unix_Socket_Receiver_HPP__ 00003 00004 #include "UnixSocket.hpp" 00005 00006 class UnixSocketReceiver { 00007 00008 public: 00009 00010 UnixSocketReceiver( short Listen_Port ); 00011 ~UnixSocketReceiver(); 00012 00013 bool Listen(); 00014 00015 inline SOCKET getSocket(); 00016 00017 private: 00018 static void* ListenThread(void* data); 00019 00020 SOCKET ListenSocket; // The socket that we're listening for connections on 00021 00022 struct sockaddr_in srv; // The address that the server is listening on 00023 struct sockaddr_in client; // The address that the last message was received from 00024 }; 00025 00026 #endif