GSmtp::ServerPeer Class Reference

Represents a connection from an SMTP client. More...

#include <gsmtpserver.h>

Inheritance diagram for GSmtp::ServerPeer:

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

List of all members.

Public Member Functions

 ServerPeer (GNet::Server::PeerInfo, Server &server, std::auto_ptr< ProtocolMessage > pmessage, const Secrets &, const std::string &verifier_address, unsigned int verifier_timeout, std::auto_ptr< ServerProtocol::Text > ptext, ServerProtocol::Config)
 Constructor.

Protected Member Functions

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


Detailed Description

Represents a connection from an SMTP client.

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

See also:
GSmtp::Server

Definition at line 53 of file gsmtpserver.h.


Constructor & Destructor Documentation

GSmtp::ServerPeer::ServerPeer ( GNet::Server::PeerInfo  peer_info,
Server server,
std::auto_ptr< ProtocolMessage pmessage,
const Secrets server_secrets,
const std::string &  verifier_address,
unsigned int  verifier_timeout,
std::auto_ptr< ServerProtocol::Text ptext,
ServerProtocol::Config  protocol_config 
)

Constructor.

Definition at line 74 of file gsmtpserver.cpp.

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


Member Function Documentation

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

Final override from GNet::BufferedServerPeer.

Implements GNet::ServerPeer.

Definition at line 105 of file gsmtpserver.cpp.

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

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

Final override from GNet::BufferedServerPeer.

Implements GNet::BufferedServerPeer.

Definition at line 110 of file gsmtpserver.cpp.

References GSmtp::ServerProtocol::apply().

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


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

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