WIP Reliable message

This commit is contained in:
Jocke
2016-02-04 15:49:04 +01:00
parent 7bf4f5c30e
commit 9232b24a7b
15 changed files with 580 additions and 294 deletions
+16
View File
@@ -1,7 +1,23 @@
#ifndef TCPClient_h__
#define TCPClient_h__
#include "Client.h"
class TCPClient : public Client
{
public:
TCPClient(ConfigFile* config);
~TCPClient();
void Start(World* world, EventBroker* eventBroker);
private:
// Assio TCP logic
boost::asio::ip::tcp::endpoint m_Endpoint;
boost::asio::io_service m_IOService;
boost::shared_ptr<boost::asio::ip::tcp::socket> m_Socket;
void readFromServer();
int receive(char * data);
void send(Packet & packet);
};
#endif