Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cli_def Struct Reference

#include <net_cli.h>

Data Fields

int completion_callback
 
struct cli_commandcommands
 
int(* auth_callback )(const char *, const char *)
 
int(* regular_callback )(struct cli_def *cli)
 
int(* enable_callback )(const char *)
 
char * banner
 
struct unp * users
 
char * enable_password
 
char * history [MAX_HISTORY]
 
char showprompt
 
char * promptchar
 
char * hostname
 
char * modestring
 
int privilege
 
int mode
 
int state
 
struct cli_filterfilters
 
void(* print_callback )(struct cli_def *cli, const char *string)
 
FILE * client
 
void * conn
 
void * service
 
char * commandname
 
char * buffer
 
unsigned buf_size
 
struct timeval timeout_tm
 
time_t idle_timeout
 
int(* idle_timeout_callback )(struct cli_def *)
 
time_t last_action
 
int telnet_protocol
 
void * user_context
 
ksnetEvMgrClasske
 
unsigned int regular_count
 
int debug_regular
 

Detailed Description

Examples:
teoterm.c.

Field Documentation

int(* cli_def::auth_callback)(const char *, const char *)
char* cli_def::banner

Referenced by cli_done(), cli_loop(), and cli_set_banner().

unsigned cli_def::buf_size

Referenced by cli_init().

char* cli_def::buffer

Referenced by cli_done(), and cli_init().

char* cli_def::commandname

Referenced by cli_command_name(), and cli_done().

int cli_def::completion_callback
void* cli_def::conn
int cli_def::debug_regular

Referenced by cli_init().

int(* cli_def::enable_callback)(const char *)
char* cli_def::enable_password

Referenced by cli_allow_enable(), and cli_int_enable().

struct cli_filter* cli_def::filters
char* cli_def::history[MAX_HISTORY]
char* cli_def::hostname

Referenced by cli_done(), and cli_set_hostname().

time_t cli_def::idle_timeout

Referenced by cli_loop(), and cli_set_idle_timeout().

int(* cli_def::idle_timeout_callback)(struct cli_def *)
ksnetEvMgrClass* cli_def::ke

Referenced by cli_init(), and cli_loop().

time_t cli_def::last_action

Referenced by cli_loop(), and cli_set_idle_timeout().

int cli_def::mode
char* cli_def::modestring

Referenced by cli_done(), and cli_set_modestring().

void(* cli_def::print_callback)(struct cli_def *cli, const char *string)

Referenced by cli_print_callback().

int cli_def::privilege
char* cli_def::promptchar

Referenced by cli_done(), and cli_set_promptchar().

int(* cli_def::regular_callback)(struct cli_def *cli)

Referenced by cli_init(), and cli_regular().

unsigned int cli_def::regular_count

Referenced by cli_init().

void* cli_def::service

Referenced by cli_int_exit().

char cli_def::showprompt

Referenced by cli_reprompt().

int cli_def::state

Referenced by cli_int_enable(), and cli_loop().

int cli_def::telnet_protocol
struct timeval cli_def::timeout_tm

Referenced by cli_init(), and cli_regular_interval().

void* cli_def::user_context

Referenced by cli_get_context(), and cli_set_context().

struct unp* cli_def::users

The documentation for this struct was generated from the following file: