#ifndef CONNECTOR_H__ #define CONNECTOR_H__ #include #include "../SQCSim-common/netprotocol.h" #include "define.h" class Connector { public: Connector(); ~Connector(); int Init(); int Connect(const char* srv_addr, std::string name); uint64_t getId() const; unsigned int getSeed() const; //void SendInput(); //int Sync(); SOCKET m_sock_udp = 0, m_sock_tcp = 0; sockaddr_in m_srvsockaddr; private: #ifdef _WIN32 WSADATA m_wsaData; #endif std::map m_inputmanifest; std::map m_players; std::map m_teams; netprot::LoginInfo m_loginfo; netprot::GameInfo m_gameinfo; }; #endif