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

BOOL PTelnetSocket::OnCommand ( BYTE  code  )  [protected, virtual]

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 PError stream (when debug is TRUE) and returns TRUE;

Returns:
TRUE if next byte is not part of the command.
Parameters:
code  Code received that could not be precessed.

Definition at line 915 of file telnet.cxx.

References NOP.

Referenced by Read().

{
  if (code == NOP)
    return TRUE;
  PTelnetError << "unknown command " << (int)code << endl;
  return TRUE;
}


Generated by  Doxygen 1.6.0   Back to index