Home --> Documentations --> PJLIB-UTIL Reference

cli_telnet.h
Go to the documentation of this file.
1 /* $Id$ */
2 /*
3  * Copyright (C) 2010 Teluu Inc. (http://www.teluu.com)
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  */
19 #ifndef __PJLIB_UTIL_CLI_TELNET_H__
20 #define __PJLIB_UTIL_CLI_TELNET_H__
21 
27 #include <pjlib-util/cli_imp.h>
28 
30 
42 typedef struct pj_cli_telnet_info
43 {
48 
53 
54  /* Internal buffer for IP address */
55  char buf_[32];
56 
58 
65 typedef void (*pj_cli_telnet_on_started)(pj_status_t status);
66 
72 typedef struct pj_cli_telnet_cfg
73 {
81 
87 
93  int log_level;
94 
102 
110 
117 
124 
126 
132 PJ_DECL(void) pj_cli_telnet_cfg_default(pj_cli_telnet_cfg *param);
133 
134 
147  pj_cli_telnet_cfg *param,
148  pj_cli_front_end **p_fe);
149 
150 
160 
165 PJ_END_DECL
166 
167 #endif /* __PJLIB_UTIL_CLI_TELNET_H__ */
pj_str_t passwd
Definition: cli_telnet.h:101
void(* pj_cli_telnet_on_started)(pj_status_t status)
Definition: cli_telnet.h:65
pj_uint16_t port
Definition: cli_telnet.h:52
int log_level
Definition: cli_telnet.h:93
pj_status_t pj_cli_telnet_create(pj_cli_t *cli, pj_cli_telnet_cfg *param, pj_cli_front_end **p_fe)
int pj_status_t
pj_str_t ip_address
Definition: cli_telnet.h:47
struct pj_cli_t pj_cli_t
Definition: cli.h:76
struct pj_ioqueue_t pj_ioqueue_t
pj_str_t info
pj_str_t prompt_str
Definition: cli_telnet.h:116
pj_status_t pj_cli_telnet_get_info(pj_cli_front_end *fe, pj_cli_telnet_info *info)
pj_ioqueue_t * ioqueue
Definition: cli_telnet.h:86
pj_uint16_t port
Definition: cli_telnet.h:80
Definition: cli_imp.h:123
#define PJ_BEGIN_DECL
pj_cli_telnet_on_started on_started
Definition: cli_telnet.h:123
Definition: cli_telnet.h:72
Command Line Interface Implementor's API.
void pj_cli_telnet_cfg_default(pj_cli_telnet_cfg *param)
unsigned short pj_uint16_t
Definition: cli_telnet.h:42
pj_str_t welcome_msg
Definition: cli_telnet.h:109

 


PJLIB-UTIL Open Source, small footprint, and portable asynchronous/caching DNS resolver, text scanner, STUN client, and XML library
Copyright (C) 2006-2009 Teluu Inc.