The Pedigree Project
0.1
src
user
applications
nyancat
telnet.h
1
/*
2
*
3
* Copyright (c) 2008-2014, Pedigree Developers
4
*
5
* Please see the CONTRIB file in the root of the source tree for a full
6
* list of contributors.
7
*
8
* Permission to use, copy, modify, and distribute this software for any
9
* purpose with or without fee is hereby granted, provided that the above
10
* copyright notice and this permission notice appear in all copies.
11
*
12
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
13
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
15
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19
*/
20
21
#ifndef TELNET_H
22
#define TELNET_H
23
24
/* Telnet Defines */
25
#define IAC 255
26
#define DONT 254
27
#define DO 253
28
#define WONT 252
29
#define WILL 251
30
31
#define SE 240
// Subnegotiation End
32
#define NOP 241
// No Operation
33
#define DM 242
// Data Mark
34
#define BRK 243
// Break
35
#define IP 244
// Interrupt process
36
#define AO 245
// Abort output
37
#define AYT 246
// Are You There
38
#define EC 247
// Erase Character
39
#define EL 248
// Erase Line
40
#define GA 249
// Go Ahead
41
#define SB 250
// Subnegotiation Begin
42
43
#define BINARY 0
// 8-bit data path
44
#define ECHO 1
// echo
45
#define RCP 2
// prepare to reconnect
46
#define SGA 3
// suppress go ahead
47
#define NAMS 4
// approximate message size
48
#define STATUS 5
// give status
49
#define TM 6
// timing mark
50
#define RCTE 7
// remote controlled transmission and echo
51
#define NAOL 8
// negotiate about output line width
52
#define NAOP 9
// negotiate about output page size
53
#define NAOCRD 10
// negotiate about CR disposition
54
#define NAOHTS 11
// negotiate about horizontal tabstops
55
#define NAOHTD 12
// negotiate about horizontal tab disposition
56
#define NAOFFD 13
// negotiate about formfeed disposition
57
#define NAOVTS 14
// negotiate about vertical tab stops
58
#define NAOVTD 15
// negotiate about vertical tab disposition
59
#define NAOLFD 16
// negotiate about output LF disposition
60
#define XASCII 17
// extended ascii character set
61
#define LOGOUT 18
// force logout
62
#define BM 19
// byte macro
63
#define DET 20
// data entry terminal
64
#define SUPDUP 21
// supdup protocol
65
#define SUPDUPOUTPUT 22
// supdup output
66
#define SNDLOC 23
// send location
67
#define TTYPE 24
// terminal type
68
#define EOR 25
// end or record
69
#define TUID 26
// TACACS user identification
70
#define OUTMRK 27
// output marking
71
#define TTYLOC 28
// terminal location number
72
#define VT3270REGIME 29
// 3270 regime
73
#define X3PAD 30
// X.3 PAD
74
#define NAWS 31
// window size
75
#define TSPEED 32
// terminal speed
76
#define LFLOW 33
// remote flow control
77
#define LINEMODE 34
// Linemode option
78
#define XDISPLOC 35
// X Display Location
79
#define OLD_ENVIRON 36
// Old - Environment variables
80
#define AUTHENTICATION 37
// Authenticate
81
#define ENCRYPT 38
// Encryption option
82
#define NEW_ENVIRON 39
// New - Environment variables
83
#define TN3270E 40
// TN3270E
84
#define XAUTH 41
// XAUTH
85
#define CHARSET 42
// CHARSET
86
#define RSP 43
// Telnet Remote Serial Port
87
#define COM_PORT_OPTION 44
// Com Port Control Option
88
#define SUPPRESS_LOCAL_ECHO 45
// Telnet Suppress Local Echo
89
#define TLS 46
// Telnet Start TLS
90
#define KERMIT 47
// KERMIT
91
#define SEND_URL 48
// SEND-URL
92
#define FORWARD_X 49
// FORWARD_X
93
#define PRAGMA_LOGON 138
// TELOPT PRAGMA LOGON
94
#define SSPI_LOGON 139
// TELOPT SSPI LOGON
95
#define PRAGMA_HEARTBEAT 140
// TELOPT PRAGMA HEARTBEAT
96
#define EXOPL 255
// Extended-Options-List
97
#define NOOPT 0
98
99
#define IS 0
100
#define SEND 1
101
102
#endif
Generated on Sat Oct 3 2026 06:38:08 for The Pedigree Project by
1.9.8