236230d12c
Increased local receive buffer for Client and Server() and removed the magic number that was used
In Server.h and Client.h
(char readBuffer[INPUTSIZE] = { 0 }).
Packets start size has now been increased to 512 bytes.
Changed ComponentInfo::FieldsInOrder to store strings instead of pointers.
Removed HasEntity() and are now using ValidEntity() instead.
20 lines
366 B
C++
20 lines
366 B
C++
#ifndef Network_h__
|
|
#define Network_h__
|
|
|
|
#include "Core/World.h"
|
|
#include "Core/EventBroker.h"
|
|
#include "Network/Packet.h"
|
|
|
|
#define MAXCONNECTIONS 8
|
|
#define INPUTSIZE 4097
|
|
|
|
class Network
|
|
{
|
|
public:
|
|
virtual ~Network() { };
|
|
virtual void Start(World* m_world, EventBroker *eventBroker) = 0;
|
|
virtual void Update() = 0;
|
|
virtual void Close() = 0;
|
|
};
|
|
|
|
#endif |