Logo Search packages:      
Sourcecode: pwlib version File versions

BOOL PPOP3Client::Close (  )  [virtual]

Close the socket, and if connected as a client, QUITs from server.

Returns:
TRUE if the channel was closed and the QUIT accepted by the server.

Reimplemented from PIndirectChannel.

Definition at line 952 of file inetmail.cxx.

References PIndirectChannel::Close(), PInternetProtocol::ExecuteCommand(), PIndirectChannel::IsOpen(), and PChannel::SetReadTimeout().

Referenced by ~PPOP3Client().

{
  BOOL ok = TRUE;
  if (IsOpen() && loggedIn) {
    SetReadTimeout(60000);
    ok = ExecuteCommand(QUIT, "") > 0;
  }
  return PInternetProtocol::Close() && ok;
}


Generated by  Doxygen 1.6.0   Back to index