diff options
author | Laurent Rabret <laurent.rabret@orange.com> | 2011-11-25 10:35:34 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-11-25 10:46:49 +0100 |
commit | b9223a17b8a500c88e8c5eddec7b261cf73514fc (patch) | |
tree | 1e9aec651d247cdcf85ddff4b0fb2d2a6529d6a9 /lib/arpa_telnet.h | |
parent | f712ace9d702e5380a943caa48a18579a7cd8443 (diff) | |
download | curl-b9223a17b8a500c88e8c5eddec7b261cf73514fc.tar.gz |
TELNET: improved treatment of options
1) enables the Window Size option
2) allows the server to enable the echo mode
3) allows an app using libcurl to disable the default binary mode
Signed-off-by: Laurent Rabret
Diffstat (limited to 'lib/arpa_telnet.h')
-rw-r--r-- | lib/arpa_telnet.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/arpa_telnet.h b/lib/arpa_telnet.h index 6626928b5..098d9a92f 100644 --- a/lib/arpa_telnet.h +++ b/lib/arpa_telnet.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -26,9 +26,11 @@ * Telnet option defines. Add more here if in need. */ #define CURL_TELOPT_BINARY 0 /* binary 8bit data */ +#define CURL_TELOPT_ECHO 1 /* just echo! */ #define CURL_TELOPT_SGA 3 /* Suppress Go Ahead */ #define CURL_TELOPT_EXOPL 255 /* EXtended OPtions List */ #define CURL_TELOPT_TTYPE 24 /* Terminal TYPE */ +#define CURL_TELOPT_NAWS 31 /* Negotiate About Window Size */ #define CURL_TELOPT_XDISPLOC 35 /* X DISPlay LOCation */ #define CURL_TELOPT_NEW_ENVIRON 39 /* NEW ENVIRONment variables */ |