diff options
| author | Franklin Wei <git@fwei.tk> | 2015-12-05 13:20:26 -0500 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2015-12-05 13:20:26 -0500 |
| commit | cdd4bc0b411d6834952434b80313b5ee0b131db0 (patch) | |
| tree | 215ce96e0f2de497bd257f582384aba49d5942bf /src/netcosm.h | |
| parent | 8fca7ee4076aaefe7122be86abda5e9ae6a50ff7 (diff) | |
| download | netcosm-cdd4bc0b411d6834952434b80313b5ee0b131db0.zip netcosm-cdd4bc0b411d6834952434b80313b5ee0b131db0.tar.gz netcosm-cdd4bc0b411d6834952434b80313b5ee0b131db0.tar.bz2 netcosm-cdd4bc0b411d6834952434b80313b5ee0b131db0.tar.xz | |
telnet support
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); |