Logo Search packages:      
Sourcecode: pwlib version File versions

PIPSocket * PInternetProtocol::GetSocket (  )  const [inherited]

Get the eventual socket for the series of indirect channels that may be between the current protocol and the actual I/O channel.

This will assert if the I/O channel is not an IP socket.

Returns:
TRUE if the string and CR/LF were completely written.

Definition at line 413 of file inetprot.cxx.

References PIndirectChannel::GetBaseReadChannel().

Referenced by OnEHLO(), OnHELO(), PFTPServer::OnOpen(), and PFTPClient::OnOpen().

{
  PChannel * channel = GetBaseReadChannel();
  if (channel != NULL && PIsDescendant(channel, PIPSocket))
    return (PIPSocket *)channel;
  return NULL;
}


Generated by  Doxygen 1.6.0   Back to index