:GetMode()


Class

     aprTelnet()

 

Syntax

     :GetMode( [hSession] ) -> nMode

 

Parameters

 

hSession

Optional: If hSession is not passed, the value in :Session will be used

 

Return

Numeric indocating the Mode that is currently set for communication with the remote server.

 

Description

The :GetMode() method returns the current client mode.

 

The client mode is a combination of one or more flags which determines how the client handles local character echo and character processing. The following values are recognized:

Value

Description

TELNET_MODE_LOCALECHO

The local client is responsible for echoing data entered by the user. By default, this mode is not set which means that the remote server is responsible for echoing back each character written to it.

TELNET_MODE_BINARY

Data exchanged between the client and server should not be converted or line buffered. If this option is not specified, the high-bit will be cleared on all characters and single linefeeds will be automatically converted to carriage-return/linefeed sequences.

  

See Also

:SetMode()