diff options
| author | Franklin Wei <git@fwei.tk> | 2016-01-18 14:59:35 -0500 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2016-01-18 14:59:35 -0500 |
| commit | 344a56010938c28225c3d145d5191c8fb8234288 (patch) | |
| tree | 49fe35f68d9f69d917dbd87aa177b5260c286699 /src/telnet.h | |
| parent | a8cdc61833ab16dcb0d0d8364710d55759cc0293 (diff) | |
| download | netcosm-344a56010938c28225c3d145d5191c8fb8234288.zip netcosm-344a56010938c28225c3d145d5191c8fb8234288.tar.gz netcosm-344a56010938c28225c3d145d5191c8fb8234288.tar.bz2 netcosm-344a56010938c28225c3d145d5191c8fb8234288.tar.xz | |
fix a synchronization bug, better word wrapping, and pretty telnet
Diffstat (limited to 'src/telnet.h')
| -rw-r--r-- | src/telnet.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/telnet.h b/src/telnet.h index 854828e..2289e84 100644 --- a/src/telnet.h +++ b/src/telnet.h @@ -42,11 +42,11 @@ void telnet_init(void); -#define TELNET_OK 0 -#define TELNET_EXIT 1 +enum telnet_status { TELNET_DATA = 0, + TELNET_FOUNDCMD, + TELNET_EXIT }; -/* returns either TELNET_OK or TELNET_EXIT */ -int telnet_handle_command(const unsigned char*, size_t); +enum telnet_status telnet_parse_data(const unsigned char*, size_t); uint16_t telnet_get_width(void); uint16_t telnet_get_height(void); |