44
45
class PacketReader : public net::SocketReader
57
58
bool ok() const {return !error;}
59
61
Uint32 newPacket(Uint8* buf,Uint32 size);
60
62
Uint32 readPacket(Uint8* buf,Uint32 size);
61
63
virtual void onDataReady(Uint8* buf,Uint32 size);
62
64
IncomingPacket* dequeuePacket();