OpenOCD
telnet_server.h File Reference
Include dependency graph for telnet_server.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  telnet_connection
 
struct  telnet_service
 

Macros

#define TELNET_BUFFER_SIZE   (10*1024)
 
#define TELNET_LINE_HISTORY_SIZE   (128)
 
#define TELNET_LINE_MAX_SIZE   (10*256)
 

Enumerations

enum  telnet_states {
  TELNET_STATE_DATA , TELNET_STATE_IAC , TELNET_STATE_SB , TELNET_STATE_SE ,
  TELNET_STATE_WILL , TELNET_STATE_WONT , TELNET_STATE_DO , TELNET_STATE_DONT ,
  TELNET_STATE_ESCAPE
}
 

Functions

int telnet_init (char *banner)
 
int telnet_register_commands (struct command_context *command_context)
 
void telnet_service_free (void)
 

Macro Definition Documentation

◆ TELNET_BUFFER_SIZE

#define TELNET_BUFFER_SIZE   (10*1024)

Definition at line 19 of file telnet_server.h.

◆ TELNET_LINE_HISTORY_SIZE

#define TELNET_LINE_HISTORY_SIZE   (128)

Definition at line 21 of file telnet_server.h.

◆ TELNET_LINE_MAX_SIZE

#define TELNET_LINE_MAX_SIZE   (10*256)

Definition at line 22 of file telnet_server.h.

Enumeration Type Documentation

◆ telnet_states

Enumerator
TELNET_STATE_DATA 
TELNET_STATE_IAC 
TELNET_STATE_SB 
TELNET_STATE_SE 
TELNET_STATE_WILL 
TELNET_STATE_WONT 
TELNET_STATE_DO 
TELNET_STATE_DONT 
TELNET_STATE_ESCAPE 

Definition at line 24 of file telnet_server.h.

Function Documentation

◆ telnet_init()

int telnet_init ( char *  banner)

◆ telnet_register_commands()

int telnet_register_commands ( struct command_context command_context)

Definition at line 1001 of file telnet_server.c.

References NULL, register_commands(), telnet_command_handlers, and telnet_port.

Referenced by server_register_commands().

◆ telnet_service_free()

void telnet_service_free ( void  )

Definition at line 1007 of file telnet_server.c.

References telnet_port.

Referenced by server_free().