Started to implement server state engine.

This commit is contained in:
lotodore
2007-03-13 23:27:17 +00:00
parent 6f33202406
commit ca354dce7f
33 changed files with 1130 additions and 193 deletions
+2 -1
View File
@@ -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();