Removed Message Queue
Sending and receiving is now in one thread (gotta make them separate)
Created a very crude Plugin System
Renamed AllAndMe to AllAndServer
This commit is contained in:
TheDoctor
2019-10-15 16:27:16 +01:00
parent 32473472e4
commit c50d40341f
48 changed files with 321 additions and 334 deletions

View File

@ -1,6 +1,6 @@
#include "TcpConnection.hpp"
#include "HLAPI/TcpConnection.hpp"
#include "InternalTags.hpp"
#include "HLAPI/InternalTags.hpp"
namespace std::net
{
@ -24,7 +24,7 @@ namespace std::net
m_id = id;
}
bool TcpConnection::sendMessage(NetworkMessage & msg)
bool TcpConnection::sendMessage(const NetworkMessage & msg)
{
uint32_t size;
uint8_t *data = msg.SerializeData(size);