class PTelnetSocket

A TCP/IP socket for the TELNET high level protocol

Inheritance:


Protected Methods

[more]virtual void OnDo ( BYTE option )
This callback function is called by the system when it receives a DO request from the remote system.
[more]virtual void OnDont ( BYTE option )
This callback function is called by the system when it receives a DONT request from the remote system.
[more]virtual void OnWill ( BYTE option )
This callback function is called by the system when it receives a WILL request from the remote system.
[more]virtual void OnWont ( BYTE option )
This callback function is called by the system when it receives a WONT request from the remote system.
[more]virtual void OnSubOption ( BYTE code, const BYTE* info, PINDEX len )
This callback function is called by the system when it receives a sub-option command from the remote system
[more]virtual BOOL OnCommand ( BYTE code )
This callback function is called by the system when it receives an telnet command that it does not do anything with.


Inherited from PTCPSocket:

Public Methods

Construction.

Overrides from class PObject.

Overrides from class PChannel.

Overrides from class PSocket.

New functions for class.


Inherited from PIPSocket:

Public Methods

ovirtual PString GetName() const
ovirtual BOOL Connect( const PString & address )
ovirtual BOOL Listen( unsigned queueSize = 5, WORD port = 0, Reusability reuse = AddressIsExclusive )
ostatic PString GetHostName()
ostatic BOOL GetHostAddress( Address & addr )
ostatic PStringArray GetHostAliases( const PString & hostname )
ostatic BOOL IsLocalHost( const PString & hostname )
ovirtual BOOL GetLocalAddress( Address & addr )
ovirtual BOOL GetPeerAddress( Address & addr )
oPString GetLocalHostName()
oPString GetPeerHostName()
ostatic void ClearNameCache()
ostatic BOOL GetGatewayAddress( Address & addr )
ostatic PString GetGatewayInterface()
ostatic BOOL GetRouteTable( RouteTable & table )
ostatic BOOL GetInterfaceTable( InterfaceTable & table )

Public Members

class Address: public PObject
A class describing an IP address
class RouteEntry: public PObject
Describes a route table entry
class InterfaceEntry: public PObject
Describes an interface table entry


Inherited from PSocket:

Public Methods

Socket establishment functions

Socket options functions

Port/Service database functions

Integer conversion functions

Public Members

Multiple socket selection functions

Protected Fields

oWORD port

Protected Methods

ovirtual const char* GetProtocolName() const


Inherited from PChannel:

Public Methods

Construction

Overrides from class PObject

Information functions

Reading functions

Writing functions

Miscellaneous functions

ostatic BOOL ConvertOSError( int libcReturnValue, Errors & lastError, int & osError )

Public Members

Error functions

Protected Fields

oint os_handle
oErrors lastErrorCode[NumErrorGroups+1]
oint lastErrorNumber[NumErrorGroups+1]
oPINDEX lastReadCount
oPINDEX lastWriteCount
oPTimeInterval readTimeout
oPTimeInterval writeTimeout

Protected Methods

ovirtual BOOL ConvertOSError( int libcReturnValue, ErrorGroup group = LastGeneralError )
oBOOL SetErrorValues( Errors errorCode, int osError, ErrorGroup group = LastGeneralError )
oint ReadCharWithTimeout( PTimeInterval & timeout )


Inherited from PObject:

Public Methods

Run Time Type functions

I/O functions

Public Members

Comparison functions


Documentation

A TCP/IP socket for the TELNET high level protocol
ovirtual void OnDo( BYTE option )
This callback function is called by the system when it receives a DO request from the remote system.

The default action is to send a WILL for options that are understood by the standard TELNET class and a WONT for all others.

Returns:
TRUE if option is accepted.

ovirtual void OnDont( BYTE option )
This callback function is called by the system when it receives a DONT request from the remote system.

The default action is to disable options that are understood by the standard TELNET class. All others are ignored.

ovirtual void OnWill( BYTE option )
This callback function is called by the system when it receives a WILL request from the remote system.

The default action is to send a DO for options that are understood by the standard TELNET class and a DONT for all others.

ovirtual void OnWont( BYTE option )
This callback function is called by the system when it receives a WONT request from the remote system.

The default action is to disable options that are understood by the standard TELNET class. All others are ignored.

ovirtual void OnSubOption( BYTE code, const BYTE* info, PINDEX len )
This callback function is called by the system when it receives a sub-option command from the remote system

ovirtual BOOL OnCommand( BYTE code )
This callback function is called by the system when it receives an telnet command that it does not do anything with.

The default action displays a message to the <A>PError</A> stream (when <CODE>debug</CODE> is TRUE) and returns TRUE;

Returns:
TRUE if next byte is not part of the command.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.