Data Structures | Defines | Functions

telnetd.c File Reference

#include "uip.h"
#include "telnetd.h"
#include "../memb/memb.h"
#include "shell.h"
#include "../cli/api.h"
#include <string.h>

Go to the source code of this file.

Data Structures

struct  telnetd_line

Defines

#define ISO_nl   0x0a
#define ISO_cr   0x0d
#define STATE_NORMAL   0
#define STATE_IAC   1
#define STATE_WILL   2
#define STATE_WONT   3
#define STATE_DO   4
#define STATE_DONT   5
#define STATE_CLOSE   6
#define TELNET_IAC   255
#define TELNET_WILL   251
#define TELNET_WONT   252
#define TELNET_DO   253
#define TELNET_DONT   254

Functions

 MEMB (linemem, struct telnetd_line, TELNETD_CONF_NUMLINES)
void shell_quit (char *)
void shell_prompt (char *prompt)
void shell_output (char *str1, char *str2)
void telnetd_init (void)
void telnetd_appcall (void)

Detailed Description

Shell server

Author:
Adam Dunkels <adam@sics.se>

Definition in file telnetd.c.