Cleaned up code and fixed crash when closing client before server when using udp.

This commit is contained in:
Jocke
2016-02-10 11:28:03 +01:00
parent d2ed293183
commit 2ec30fd2b2
10 changed files with 78 additions and 103 deletions
-11
View File
@@ -16,17 +16,6 @@ public:
virtual void Send(Packet & packet) = 0;
protected:
char m_ReadBuffer[BUFFERSIZE] = { 0 };
//void handle_accept(boost::shared_ptr<boost::asio::ip::tcp::socket> socket, const boost::system::error_code & error);
//void parseConnect(Packet & packet);
//void readFromClients();
//public:
// virtual void Connect(std::string playerName, std::string address, int port) = 0;
// virtual void Disconnect() = 0;
// virtual Packet Receive() = 0;
// virtual void Send(Packet & packet) = 0;
//protected:
// char m_ReadBuffer[BUFFERSIZE] = { 0 };
};
#endif