Logo Search packages:      
Sourcecode: pwlib version File versions

BOOL PSMTPServer::OnOpen (  )  [protected, virtual]

This callback is executed when the Open() function is called with open channels. It may be used by descendent channels to do any handshaking required by the protocol that channel embodies.

The default behaviour is to simply return TRUE.

Returns TRUE if the protocol handshaking is successful.

Reimplemented from PIndirectChannel.

Definition at line 396 of file inetmail.cxx.

References PIPSocket::GetHostName(), and PInternetProtocol::WriteResponse().

  return WriteResponse(220, PIPSocket::GetHostName() + "ESMTP server ready");

Generated by  Doxygen 1.6.0   Back to index