GPop::ServerPeer Class Reference

Represents a connection from a POP client. More...

#include <gpopserver.h>

Inheritance diagram for GPop::ServerPeer:

GNet::BufferedServerPeer GPop::ServerProtocol::Sender GNet::ServerPeer GNet::EventHandler GNet::Connection GNet::SocketProtocolSink

List of all members.

Public Member Functions

 ServerPeer (GNet::Server::PeerInfo, Server &, Store &, const Secrets &, std::auto_ptr< ServerProtocol::Text > ptext, ServerProtocol::Config)
virtual bool protocolSend (const std::string &line, size_t)
 Final override from GPop::ServerProtocol::Sender.

Protected Member Functions

virtual void onDelete (const std::string &)
 Final override from GNet::ServerPeer.
virtual bool onReceive (const std::string &)
 Final override from GNet::BufferedServerPeer.
virtual void onSecure ()
 Final override from GNet::SocketProtocolSink.
virtual void onSendComplete ()
 Final override from GNet::BufferedServerPeer.

Detailed Description

Represents a connection from a POP client.

Instances are created on the heap by Server (only).

See also:

Definition at line 50 of file gpopserver.h.

Constructor & Destructor Documentation

GPop::ServerPeer::ServerPeer ( GNet::Server::PeerInfo  peer_info,
Server server,
Store store,
const Secrets secrets,
std::auto_ptr< ServerProtocol::Text ptext,
ServerProtocol::Config  protocol_config 


Definition at line 31 of file gpopserver.cpp.

References G_LOG_S, GPop::ServerProtocol::init(), and GNet::Server::PeerInfo::m_address.

Member Function Documentation

bool GPop::ServerPeer::protocolSend ( const std::string &  line,
size_t  offset 
) [virtual]

Final override from GPop::ServerProtocol::Sender.

Implements GPop::ServerProtocol::Sender.

Definition at line 70 of file gpopserver.cpp.

References GNet::ServerPeer::send().

void GPop::ServerPeer::onDelete ( const std::string &  reason  )  [protected, virtual]

Final override from GNet::ServerPeer.

Implements GNet::ServerPeer.

Definition at line 49 of file gpopserver.cpp.

References G_LOG_S, and GNet::ServerPeer::peerAddress().

bool GPop::ServerPeer::onReceive ( const std::string &  line  )  [protected, virtual]

Final override from GNet::BufferedServerPeer.

Implements GNet::BufferedServerPeer.

Definition at line 59 of file gpopserver.cpp.

void GPop::ServerPeer::onSecure (  )  [protected, virtual]

Final override from GNet::SocketProtocolSink.

Implements GNet::SocketProtocolSink.

Definition at line 55 of file gpopserver.cpp.

void GPop::ServerPeer::onSendComplete (  )  [protected, virtual]

Final override from GNet::BufferedServerPeer.

Implements GNet::ServerPeer.

Definition at line 75 of file gpopserver.cpp.

References GPop::ServerProtocol::resume().

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