diff options
Diffstat (limited to 'src/netcosm.h')
| -rw-r--r-- | src/netcosm.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 <time.h> #include <unistd.h> +#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); |