BLOG | DOCUMENTATION | GITHUB

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

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

 


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.