SubOption Event

Fired when a Telnet SubOption command comes from the Telnet server.


ANSI (Cross Platform)
virtual int FireSubOption(TelnetSubOptionEventParams *e);
typedef struct {
const char *SubOption; int lenSubOption; int reserved; } TelnetSubOptionEventParams; Unicode (Windows) virtual INT FireSubOption(TelnetSubOptionEventParams *e);
typedef struct {
LPCSTR SubOption; INT lenSubOption; INT reserved; } TelnetSubOptionEventParams;
- (void)onSubOption:(NSData*)subOption;

virtual INT IPWORKS_CALL FireSubOption(LPSTR &lpSubOption, INT &lenSubOption);


The SubOption parameter contains the suboption data as sent by the other end. The enclosing suboption command codes are stripped away.

For a list of valid Telnet suboptions and their descriptions please look at the Telnet RFCs.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 C++ Edition - Version 20.0 [Build 8161]