blob: adbb7b9027bd8701688533131bcb872b695ad79c (
plain)
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
|
#ifndef __TELNET_H
#define __TELNET_H
struct client_t
{
struct list_head entry;
struct triton_md_handler_t hnd;
struct list_head xmit_queue;
struct buffer_t *xmit_buf;
int xmit_pos;
struct list_head history;
struct list_head *history_pos;
uint8_t *cmdline;
int cmdline_pos;
int cmdline_pos2;
int cmdline_len;
int auth:1;
int echo:1;
int telcmd:1;
int esc:1;
};
int telnet_send(struct client_t *cln, const void *buf, int size);
void telnet_disconnect(struct client_t *cln);
int process_cmd(struct client_t *cln);
#endif
|