telnet.h

gurba-0.40/src/host/telnet.h · 846 B

From the archive gurba.tgz

Download the archive   « Back to the archive contents

/*
 * Definitions for the TELNET protocol.
 */

# define IAC		255	/* interpret as command */
# define DONT		254	/* don't */
# define DO		253	/* do */
# define WONT		252	/* won't */
# define WILL		251	/* will */
# define SB		250	/* begin subnegotiation */
# define GA		249	/* go ahead */
# define EL		248	/* erase line */
# define EC		247	/* erase character */
# define AYT		246	/* are you there */
# define AO		245	/* abort output */
# define IP		244	/* interrupt process */
# define BREAK		243	/* break */
# define DM		242	/* data mark */
# define SE		240	/* end subnegotiation */

/* options */
# define TELOPT_ECHO	1	/* echo */
# define TELOPT_SGA	3	/* suppress go ahead */
# define TELOPT_TM	6	/* timing mark */
# define TELOPT_LINEMODE	34	/* linemode option */

/* subnegotiations for linemode */
# define LM_MODE	1
# define MODE_EDIT	0x01

Site Stats

Snippets: 1791
Codebases: 571