![Symbian Developer Library](../../../../a_stock/images/mainheading.gif)
![]() |
![]() |
|
class TTelnetConfig;
Specifies telnet session configuration information.
The client must provide a reference to an instance of this class as a parameter to the CTelnetSession::NewL(const TTelnetConfig &,const MTelnetNotification *)
function.
Configuration options can be modified, when the session is in progress, using the CTelnetSession::DoModifyConfig(TTelnetConfig &)
function.
Configuration option state can be obtained using the CTelnetSession::OptionStatus(TOptionStatus &)
function.
Defined in TTelnetConfig
:
TTelnetConfig()
Constructor. TWindowSize
iAllowLogout
Specifies whether the telnet server can logout the client.iServerEcho
Enables or disables telnet server echo to client.iTermSpeed
Specifies the speed of the telnet connection.iTermType
Specifies the terminal type.iWindowSize
Specifies the client's window size.~TTelnetConfig()
Destructor. struct TWindowSize;
Defined in TTelnetConfig::TWindowSize
:
x
TInt16 x;
The client window's width (number of columns).
y
TInt16 y;
The client window's height (number of rows).
TWindowSize iWindowSize;
Specifies the client's window size.
The default is 80 columns by 24 rows.
(RFC 1073 -- Set to Configure Window Size)
TBuf8< 20 > iTermSpeed;
Specifies the speed of the telnet connection.
The default is "38400" (in ASCII characters). Must be set to a server-supported rate.
(RFC 1079 -- Set to Configure Terminal Speed)
TBuf8< 20 > iTermType;
Specifies the terminal type.
The default is "dumb" (in ASCII characters).
(RFC 1091 -- Set to Configure Terminal Type)
TBool iAllowLogout;
Specifies whether the telnet server can logout the client.
The default, ETrue, enables the server to logout the client. If EFalse any logout request from the telnet server is rejected by the client.
(RFC 727 -- Set/Clear to Enable/Disable Server Logout)
TBool iServerEcho;
Enables or disables telnet server echo to client.
The default, ETrue, enables server echo. Note that although this is normal telnet server behaviour, it is not a formal telnet requirement. It is therefore recommended that the client implement an optional local echo.
(RFC 857 -- Set/Clear to Enable/Disable Server Echo to client)