repo.or.cz
/
rlserver.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated docs
[rlserver.git]
/
telnet.h
blob
d58df4b95ad283bed22139182a3abb57f03e5bb0
1
#ifndef __RLS_TELNET__
2
#define __RLS_TELNET__
3
4
#include
"sessions.h"
5
6
enum
7
{
8
// RFC 854
9
TN_IAC
=
0xFF
,
10
TN_WILL
=
0xFB
,
11
TN_WONT
=
0xFC
,
12
TN_DO
=
0xFD
,
13
TN_DONT
=
0xFE
,
14
TN_SB
=
0xFA
,
15
TN_SE
=
0xF0
,
16
// RFC 857
17
TN_ECHO
=
0x01
,
18
// RFC 858
19
TN_SUPPRESS_GA
=
0x03
,
20
// RFC 1073
21
TN_NAWS
=
0x1F
22
};
23
24
25
#define TELNET_CLS
"
\033
[H
\033
[2J"
"
\033
[0m
\033
[40;37m"
26
27
28
void
send_telnet_init
(
int
sck
);
29
int
translate_telnet_input
(
char
*
cbuf
,
int
len
,
session_info
*
sess
);
30
31
32
#endif
/*__RLS_TELNET__*/
33