GNet::BufferedServerPeer Class Reference

A ServerPeer that does line-buffering on input. More...

#include <gbufferedserverpeer.h>

Inheritance diagram for GNet::BufferedServerPeer:

GNet::ServerPeer GNet::EventHandler GNet::Connection GNet::SocketProtocolSink GPop::ServerPeer GSmtp::AdminServerPeer GSmtp::ServerPeer

List of all members.

Public Member Functions

 BufferedServerPeer (Server::PeerInfo, const std::string &eol)
 Constructor.
virtual ~BufferedServerPeer ()
 Destructor.

Protected Member Functions

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.


Detailed Description

A ServerPeer that does line-buffering on input.

Definition at line 41 of file gbufferedserverpeer.h.


Constructor & Destructor Documentation

GNet::BufferedServerPeer::BufferedServerPeer ( Server::PeerInfo  peer_info,
const std::string &  eol 
)

Constructor.

Definition at line 26 of file gbufferedserverpeer.cpp.

GNet::BufferedServerPeer::~BufferedServerPeer (  )  [virtual]

Destructor.

Definition at line 32 of file gbufferedserverpeer.cpp.


Member Function Documentation

virtual bool GNet::BufferedServerPeer::onReceive ( const std::string &   )  [protected, pure virtual]

Called when a complete line is received from the peer.

Returns false if no more lines should be delivered.

Implemented in GSmtp::AdminServerPeer, GSmtp::ServerPeer, and GPop::ServerPeer.

Referenced by onData().

void GNet::BufferedServerPeer::onData ( const char *  p,
ServerPeer::size_type  n 
) [protected, virtual]


The documentation for this class was generated from the following files:

Generated on Fri Apr 18 15:56:13 2008 for E-MailRelay by  doxygen 1.5.5