#ifndef _TCPRECEIVE_H_ #define _TCPRECEIVE_H_ #include #include #include #include "SDL_net.h" class TCPReceive { public: TCPReceive(int port); ~TCPReceive(); std::vector& Receive(); private: void ListenFunc(); TCPsocket m_listenSocket; std::atomic m_receiveSocket; std::thread m_listenThread; std::atomic_bool m_running; std::vector m_recBuffer; }; #endif