summaryrefslogtreecommitdiff
path: root/accel-pptpd/cli/telnet.h
blob: eab156c50363fd9073fa2542a8000cb72b8de857 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __TELNET_H
#define __TELNET_H

struct client_t
{
	struct list_head entry;
	struct triton_md_handler_t hnd;
	uint8_t *recv_buf;
	int recv_pos;
	struct list_head xmit_queue;
	struct buffer_t *xmit_buf;
	int xmit_pos;
	int auth: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