WARNING: The online documentation has moved to https://docs.pjsip.org.

Visit the new documentation at https://docs.pjsip.org:

BLOG | DOCUMENTATION | GITHUB

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

#include <cli_imp.h>

Data Fields

void(* on_write_log )(pj_cli_front_end *fe, int level, const char *data, pj_size_t len)
 
void(* on_quit )(pj_cli_front_end *fe, pj_cli_sess *req)
 
void(* on_destroy )(pj_cli_front_end *fe)
 

Detailed Description

Front end operations. Only the CLI should call these functions directly.

Field Documentation

◆ on_destroy

void(* pj_cli_front_end_op::on_destroy) (pj_cli_front_end *fe)

Callback to be called to close and self destroy the front-end. This must also close any active sessions created by this front-ends.

Parameters
feThe front end.

◆ on_quit

void(* pj_cli_front_end_op::on_quit) (pj_cli_front_end *fe, pj_cli_sess *req)

Callback to be called when the application is quitting, to signal the front-end to end its main loop or any currently blocking functions, if any.

Parameters
feThe front end.
reqThe session which requested the application quit.

◆ on_write_log

void(* pj_cli_front_end_op::on_write_log) (pj_cli_front_end *fe, int level, const char *data, pj_size_t len)

Callback to write a log message to the appropriate sessions belonging to this front end. The front end would only send the log message to the session if the session's log verbosity level is greater than the level of this log message.

Parameters
feThe front end.
levelVerbosity level of this message message.
dataThe message itself.
lenLength of this message.

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

 


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.