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

BOOL PTelnetSocket::Connect ( const PString address  )  [virtual]

Connect a socket to a remote host on the specified port number. This is typically used by the client or initiator of a communications channel. This connects to a "listening" socket at the other end of the communications channel.

The port number as defined by the object instance construction or the PIPSocket::SetPort() function.

TRUE if the channel was successfully connected to the remote host.
address  Address of remote machine to connect to.

Reimplemented from PIPSocket.

Definition at line 121 of file telnet.cxx.

References PIPSocket::Connect(), SendDo(), SendWill(), StatusOption, SuppressGoAhead, and TerminalSpeed.

Referenced by PTelnetSocket().

  PTelnetError << "Connect" << endl;

  if (!PTCPSocket::Connect(host))
    return FALSE;

  return TRUE;

Generated by  Doxygen 1.6.0   Back to index