#ifndef _UDP_RECEIVE_H_ #define _UDP_RECEIVE_H_ #include "UDPPacket.h" #include "WinSockWrap.h" #include namespace SMUDP { class UDPReceive { public: UDPReceive(); ~UDPReceive(); bool Bind(UINT16 port); std::vector& ReadData(int timeout); private: std::vector m_data; SOCKET m_socket; HANDLE m_readEvent; WinSockWrap m_winSockWrap; }; } #endif