38 m_line_buffer.add(p,n) ;
40 while( iter.
more() && onReceive(iter.
line()) )
An abstract base class for the GNet::Server's connection to a remote client.
bool more() const
Returns true if there is a line() to be had.
An iterator class for GNet::LineBuffer.
virtual void onData(const char *, ServerPeer::size_type)
Final override from GNet::SocketProtocolSink.
const std::string & line()
Returns the current line and increments the iterator.
BufferedServerPeer(Server::PeerInfo, const std::string &eol)
Constructor.
virtual ~BufferedServerPeer()
Destructor.
A structure used in GNet::Server::newPeer().
std::string::size_type size_type