- Timestamp:
- Nov 30, 2012 8:57:18 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/cli/pjsip-apps/src/samples/clidemo.c
r4302 r4303 190 190 tcfg.port = 0; 191 191 #endif 192 tcfg.port = 2233; 193 tcfg.prompt_str = pj_str("CoolWater% "); 192 194 status = pj_cli_telnet_create(cli, &tcfg, NULL); 193 195 if (status != PJ_SUCCESS) … … 221 223 pj_status_t status; 222 224 pj_cli_sess *sess; 223 225 pj_cli_console_cfg console_cfg; 226 227 pj_cli_console_cfg_default(&console_cfg); 228 console_cfg.prompt_str = pj_str("HotWater> "); 229 224 230 /* 225 231 * Create the console front end 226 232 */ 227 status = pj_cli_console_create(cli, NULL, &sess, NULL);233 status = pj_cli_console_create(cli, &console_cfg, &sess, NULL); 228 234 if (status != PJ_SUCCESS) 229 235 return status; … … 235 241 */ 236 242 for (;;) { 243 char cmdline[PJ_CLI_MAX_CMDBUF]; 237 244 pj_status_t status; 238 245 239 status = pj_cli_console_process(sess );246 status = pj_cli_console_process(sess, &cmdline[0], sizeof(cmdline)); 240 247 if (status != PJ_SUCCESS) 241 248 break;
Note: See TracChangeset
for help on using the changeset viewer.