WontOption Property

A single character Telnet option code to be sent to the server with the Telnet WONT command.

Syntax

ANSI (Cross Platform)
int SetWontOption(int iWontOption);

Unicode (Windows)
INT SetWontOption(INT iWontOption);
@property (nonatomic,readwrite,assign,getter=wontOption,setter=setWontOption:) int wontOption;
- (int)wontOption;
- (void)setWontOption:(int)newWontOption;
#define PID_TELNET_WONTOPTION 34


IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_Telnet_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

0

Remarks

For a list of option codes and their descriptions, please look at the Telnet RFCs. The following are a few examples:

0 (TRANSMIT-BINARY)Enables or disables binary (8 bit) transmission.
1 (ECHO)Telnet ECHO option. Specifies whether bytes sent should be echoed or not.
3 (SUPPRESS-GO-AHEAD)Used to enable or disable transmission of the Telnet GO_AHEAD command.
24 (TERMINAL-TYPE)Allows or disallows terminal type negotiation.
31 (NAWS)Allows or disallows window size negotiation.

This property is write-only and not available at design time.

Data Type

Integer

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