00001 #ifndef __J2K__UDP_SocketServer_HPP__ 00002 #define __J2K__UDP_SocketServer_HPP__ 00003 00004 #include <j2k/Net/UDP/UDP_Socket.hpp> 00005 00006 class UDP_SocketServer 00007 : public UDP_Socket 00008 { 00009 public: 00010 00011 UDP_SocketServer( short TFTP_Port = 2000 ); 00012 virtual ~UDP_SocketServer(); 00013 00014 virtual BOOL send( void* msg, size_t msgLen ); 00015 00016 private: 00017 00018 static void* ListenThread( void* data ); 00019 00020 // The address that the last message was received from 00021 struct sockaddr_in client; 00022 }; 00023 00024 00025 #endif 00026 00027