21 #ifndef G_BUFFERED_SERVER_PEER_H
22 #define G_BUFFERED_SERVER_PEER_H
35 class BufferedServerPeer ;
51 virtual bool onReceive(
const std::string & ) = 0 ;
An abstract base class for the GNet::Server's connection to a remote client.
virtual bool onReceive(const std::string &)=0
Called when a complete line is received from the peer.
virtual void onData(const char *, ServerPeer::size_type)
Final override from GNet::SocketProtocolSink.
BufferedServerPeer(Server::PeerInfo, const std::string &eol)
Constructor.
virtual ~BufferedServerPeer()
Destructor.
A class which does line buffering.
A ServerPeer that does line-buffering on input.
A structure used in GNet::Server::newPeer().
std::string::size_type size_type