TCP and UDP Client are working for 1 connected player, more players are not tested yet

This commit is contained in:
Jocke
2016-02-05 18:30:31 +01:00
parent 9232b24a7b
commit 88d7b79cd3
17 changed files with 253 additions and 182 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ protected:
int port = 0;
// Sending message to server logic
int bytesRead = -1;
char readBuf[INPUTSIZE] = { 0 };
char readBuffer[BUFFERSIZE] = { 0 };
// Packet loss logic
PacketID m_PacketID = 0;
@@ -68,7 +68,7 @@ protected:
// Private member functions
virtual void send(Packet& packet) = 0;
virtual void readFromServer() = 0;
void connect();
virtual void connect() = 0;
void disconnect();
void parseMessageType(Packet& packet);
void updateFields(Packet& packet, const ComponentInfo& componentInfo, const EntityID& entityID, const std::string& componentType);