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 --> PJNATH Reference

pj_upnp_init_param Struct Reference

#include <upnp.h>

Data Fields

pj_pool_factoryfactory
 
const char * if_name
 
unsigned port
 
int search_time
 
void(* upnp_cb )(pj_status_t status)
 

Detailed Description

This structre describes the parameter to initialize UPnP.

Field Documentation

◆ factory

pj_pool_factory* pj_upnp_init_param::factory

The pool factory where memory will be allocated from.

◆ if_name

const char* pj_upnp_init_param::if_name

The interface name to use for all UPnP operations.

If NULL, the library will use the first suitable interface found.

◆ port

unsigned pj_upnp_init_param::port

The port number to use for all UPnP operations.

If 0, the library will pick an arbitrary free port.

◆ search_time

int pj_upnp_init_param::search_time

The time duration to search for IGD devices (in seconds).

If 0, the library will use PJ_UPNP_DEFAULT_SEARCH_TIME.

◆ upnp_cb

void(* pj_upnp_init_param::upnp_cb) (pj_status_t status)

The callback to notify application when the initialization has completed.

Parameters
statusThe initialization status.

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

 


PJNATH - Open Source NAT traversal helper library supporting STUN, TURN, and ICE
Copyright (C) 2006-2009 Teluu Inc.