From cdd4bc0b411d6834952434b80313b5ee0b131db0 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sat, 5 Dec 2015 13:20:26 -0500 Subject: telnet support --- src/netcosm.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/netcosm.h') diff --git a/src/netcosm.h b/src/netcosm.h index 4f04e5b..c8566da 100644 --- a/src/netcosm.h +++ b/src/netcosm.h @@ -18,6 +18,8 @@ #include #include +#include "telnet.h" + #define USERFILE "users.dat" #define MAX_FAILURES 3 #define NETCOSM_VERSION "v0.1" @@ -40,3 +42,9 @@ struct authinfo_t auth_check(const char*, const char*); /* add or change a user */ bool add_change_user(const char *user2, const char *pass2, int level); bool auth_remove(const char*); +void telnet_handle_command(const unsigned char*); +#define ARRAYLEN(x) (sizeof(x)/sizeof(x[0])) + +void out(const char *fmt, ...) __attribute__((format(printf,1,2))); +void out_raw(const unsigned char*, size_t); +void telnet_init(void); -- cgit v1.1