Started to implement server state engine.
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
// MUST be larger than MAX_PACKET_SIZE
|
||||
#define RECV_BUF_SIZE 10 * MAX_PACKET_SIZE
|
||||
|
||||
|
||||
class ReceiverHelper
|
||||
{
|
||||
public:
|
||||
@@ -39,7 +40,7 @@ public:
|
||||
// Set the socket from which to receive data.
|
||||
void Init(SOCKET socket);
|
||||
|
||||
boost::shared_ptr<NetPacket> Recv();
|
||||
boost::shared_ptr<NetPacket> Recv(SOCKET sock);
|
||||
|
||||
protected:
|
||||
boost::shared_ptr<NetPacket> InternalGetPacket();
|
||||
|
||||
Reference in New Issue
Block a user