File: telnet.h

package info (click to toggle)
node 0.3.2-7.4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 432 kB
  • ctags: 235
  • sloc: ansic: 3,244; makefile: 103; sh: 95
file content (40 lines) | stat: -rw-r--r-- 1,510 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* Telnet command characters */
#define	TN_SE		240	/* End of subnegotiation parameters 	*/
#define	TN_NOP		241	/* No operation 			*/
#define	TN_DM		242	/* Data Mark 				*/
#define	TN_BRK		243	/* NVT character BRK 			*/
#define	TN_IP		244	/* Interrupt Process 			*/
#define	TN_AO		245	/* Abort output 			*/
#define	TN_AYT		246	/* Are You There 			*/
#define	TN_EC		247	/* Erase character 			*/
#define	TN_EL		248	/* Erase Line 				*/
#define	TN_GA		249	/* Go ahead 				*/
#define	TN_SB		250	/* Start of of subnegotiation params	*/
#define	TN_WILL		251
#define	TN_WONT		252
#define	TN_DO		253
#define	TN_DONT		254
#define	TN_IAC		255	/* Interpret as command 		*/

/* Linemode extensions to telnet command characters */
#define	TN_EOF		236	/* End Of File 				*/
#define	TN_SUSP		237	/* Suspend 				*/
#define	TN_ABORT	238	/* Abort 				*/

/* Telnet options */
#define TN_TRANS_BINARY	0	/* Binary Transmission 			*/
#define TN_ECHO		1	/* Echo 				*/
#define TN_SUPPRESS_GA	3	/* Suppress Go Ahead 			*/
#define TN_STATUS	5	/* Status 				*/
#define TN_TIMING_MARK	6	/* Timing Mark 				*/
#define TN_LINEMODE	34	/* Linemode 				*/

/* Linemode options */
#define TN_LINEMODE_MODE	1
#define TN_LINEMODE_MODE_EDIT		1	/* Local edit 		*/
#define TN_LINEMODE_MODE_TRAPSIG	2	/* Trap signals 	*/
#define TN_LINEMODE_MODE_MODEACK	4	/* Acknowledge mode 	*/
#define TN_LINEMODE_MODE_SOFTTAB	8	/* Soft Tab 		*/
#define TN_LINEMODE_MODE_LITECHO	16	/* Literal Echo 	*/
#define	TN_LINEMODE_FORWARDMASK	2
#define TN_LINEMODE_SLC		3