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

BOOL PPOP3Client::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 937 of file inetmail.cxx.

References PString::FindRegEx(), PString::Mid(), and PInternetProtocol::ReadResponse().

  if (!ReadResponse() || lastResponseCode <= 0)
    return FALSE;

  // APOP login command supported?
  PINDEX i = lastResponseInfo.FindRegEx("<.*@.*>");

  if (i != P_MAX_INDEX)
    apopBanner = lastResponseInfo.Mid(i);

  return TRUE;

Generated by  Doxygen 1.6.0   Back to index