This commit is contained in:
MarcEricMartel
2023-09-27 11:24:41 -04:00
parent 8bc74624c3
commit 4dbcb08a11
8 changed files with 112 additions and 66 deletions

View File

@@ -3,6 +3,7 @@
#include "define.h"
#include "../SQCSim-common/netprotocol.h"
#include <stdlib.h>
class Connector {
public:
@@ -10,8 +11,8 @@ public:
~Connector();
int Init();
int Connect(sockaddr_in srv_addr, std::string name);
UINT64 getId() const;
int Connect(char* srv_addr, std::string name);
uint64_t getId() const;
unsigned int getSeed() const;
//void SendInput();
@@ -23,9 +24,9 @@ private:
SOCKET m_sock_udp = 0,
m_sock_tcp = 0;
std::string m_name = "";
UINT64 m_sid = 0,
uint64_t m_sid = 0,
m_tid = 0;
unsigned int m_seed = 12345;
unsigned int m_seed = 0;
};
#endif