Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL PSMTPClient::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:
Returns TRUE if the protocol handshaking is successful.

Reimplemented from PIndirectChannel.

Definition at line 171 of file inetmail.cxx.

References PInternetProtocol::ReadResponse().

{
  return ReadResponse() && lastResponseCode/100 == 2;
}


Generated by  Doxygen 1.6.0   Back to index