aboutsummaryrefslogtreecommitdiff
path: root/src/telnet.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/telnet.h')
-rw-r--r--src/telnet.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/telnet.h b/src/telnet.h
index c0725c4..673ad1c 100644
--- a/src/telnet.h
+++ b/src/telnet.h
@@ -16,6 +16,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#pragma once
+
/* commands */
#define IAC 255
#define DONT 254
@@ -39,6 +41,12 @@
#define LINEMODE 34
void telnet_init(void);
-void telnet_handle_command(const unsigned char*);
+
+#define TELNET_OK 0
+#define TELNET_EXIT 1
+
+/* returns either 0 or TELNET_EXIT */
+int telnet_handle_command(const unsigned char*);
+
void telnet_echo_on(void);
void telnet_echo_off(void);