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

void PTelnetSocket::OnSubOption ( BYTE  code,
const BYTE *  info,
PINDEX  len 
) [protected, virtual]

This callback function is called by the system when it receives a sub-option command from the remote system.

code  Option code for sub-option data.
info  Extra information being sent in the sub-option.
len  Number of extra bytes.

Definition at line 894 of file telnet.cxx.

References PString::GetLength(), SendSubOption(), SubOptionIs, SubOptionSend, TerminalSpeed, and TerminalType.

Referenced by Read().

  PTelnetError << "OnSubOption " << GetTELNETOptionName(code)
               << " of " << len << " bytes." << endl;
  switch (code) {
    case TerminalType :
      if (*info == SubOptionSend)
                          terminalType, terminalType.GetLength(), SubOptionIs);

    case TerminalSpeed :
      if (*info == SubOptionSend) {
        static BYTE defSpeed[] = "38400,38400";

Generated by  Doxygen 1.6.0   Back to index