blob: 24515d3e07e6c4ae48e77b0c76375972ea530716 (
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
29
30
31
32
|
#ifndef __TELNET_H
#define __TELNET_H
#include <stdarg.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 disconnect:1;
};
int telnet_send(struct client_t *cln, const void *buf, int size);
int telnet_sendv(struct client_t *cln, const char *fmt, va_list ap);
void telnet_disconnect(struct client_t *cln);
int process_cmd(struct client_t *cln);
#endif
|