Kinda works like before

This commit is contained in:
Jocke
2016-03-08 11:29:47 +01:00
parent 68a88ed756
commit 9cbc582be2
7 changed files with 76 additions and 24 deletions
+3
View File
@@ -1,11 +1,13 @@
#ifndef UDPClient_h__
#define UDPClient_h__
#include <unordered_map>
#include <boost/asio.hpp>
#include "Network/NetworkClient.h"
class UDPClient : public NetworkClient
{
// TODO: add packets to map.
public:
UDPClient();
~UDPClient();
@@ -23,6 +25,7 @@ private:
boost::shared_ptr<boost::asio::ip::udp::socket> m_Socket;
int readBuffer();
PacketID m_SendPacketID = 0;
std::unordered_map<unsigned int, boost::shared_ptr<char>> packetSegmentMap;
};
#endif