Moved UDP logic from Hybrid server/client to UDP server/client. fixed bug in Server::CheckForTimeOuts.

This commit is contained in:
Jocke
2016-02-08 14:32:00 +01:00
parent 88d7b79cd3
commit ba9419b342
16 changed files with 271 additions and 230 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef UDPClient_h__
#define UDPClient_h__
#include "Client.h"
class UDPClient : public Client
{
public:
UDPClient(ConfigFile* config);
~UDPClient();
private:
// Assio UDP logic
boost::asio::io_service m_IOService;
boost::asio::ip::udp::endpoint m_ReceiverEndpoint;
boost::asio::ip::udp::socket m_Socket;
void connect();
void readFromServer();
int receive(char * data);
void send(Packet & packet);
};
#endif