diff options
author | Kozlov Dmitry <dima@server> | 2010-11-10 12:53:48 +0300 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-11-10 12:53:48 +0300 |
commit | b6516bc491fcb7d9344f9cc720e20a5a20f94a32 (patch) | |
tree | f4ea34419b5cff7af67aacdd44279c0f89df516c /accel-pptpd/cli/telnet.h | |
parent | e2754301d6ff0020c5ff349491ad814cbc70161c (diff) | |
download | accel-ppp-xebd-b6516bc491fcb7d9344f9cc720e20a5a20f94a32.tar.gz accel-ppp-xebd-b6516bc491fcb7d9344f9cc720e20a5a20f94a32.zip |
initial telnet cli support
Diffstat (limited to 'accel-pptpd/cli/telnet.h')
-rw-r--r-- | accel-pptpd/cli/telnet.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/accel-pptpd/cli/telnet.h b/accel-pptpd/cli/telnet.h new file mode 100644 index 0000000..eab156c --- /dev/null +++ b/accel-pptpd/cli/telnet.h @@ -0,0 +1,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 + |