pjsip logo pjsip.org
Open source SIP stack and media stack for presence, im/instant messaging, and multimedia communication
Loading

HOME

SIP/media Features
High Performance SIP
Small Footprint SIP
Symbian Port

FAQ

Documentation

Licensing

Download

Development (Trac)

Projects using pjsip

Mailing List

Open Source Links


About: PJLIB, PJLIB-UTIL, PJSIP, and PJMEDIA are created by: Benny Prijono
<bennylp@pjsip.org>


 

Home --> Documentations --> PJSIP Reference

pjsip_tpfactory Struct Reference
[Transport]

#include <sip_transport.h>

Public Member Functions

 PJ_DECL_LIST_MEMBER (struct pjsip_tpfactory)

Data Fields

char obj_name [PJ_MAX_OBJ_NAME]
pj_pool_tpool
pj_lock_tlock
pjsip_transport_type_e type
char * type_name
unsigned flag
pj_sockaddr local_addr
pjsip_host_port addr_name
pj_status_t(* create_transport )(pjsip_tpfactory *factory, pjsip_tpmgr *mgr, pjsip_endpoint *endpt, const pj_sockaddr *rem_addr, int addr_len, pjsip_transport **transport)
pj_status_t(* create_transport2 )(pjsip_tpfactory *factory, pjsip_tpmgr *mgr, pjsip_endpoint *endpt, const pj_sockaddr *rem_addr, int addr_len, pjsip_tx_data *tdata, pjsip_transport **transport)
pj_status_t(* destroy )(pjsip_tpfactory *factory)

Detailed Description

A transport factory is normally used for connection oriented transports (such as TCP or TLS) to create instances of transports. It registers a new transport type to the transport manager, and the transport manager would ask the factory to create a transport instance when it received command from application to send a SIP message using the specified transport type.


Member Function Documentation

pjsip_tpfactory::PJ_DECL_LIST_MEMBER ( struct pjsip_tpfactory   ) 

This list is managed by transport manager.


Field Documentation

char pjsip_tpfactory::obj_name[PJ_MAX_OBJ_NAME]

Name.

Owned memory pool.

Type string name.

Transport flag.

pj_status_t(* pjsip_tpfactory::create_transport)(pjsip_tpfactory *factory, pjsip_tpmgr *mgr, pjsip_endpoint *endpt, const pj_sockaddr *rem_addr, int addr_len, pjsip_transport **transport)

Create new outbound connection suitable for sending SIP message to specified remote address. Note that the factory is responsible for both creating the transport and registering it to the transport manager.

pj_status_t(* pjsip_tpfactory::create_transport2)(pjsip_tpfactory *factory, pjsip_tpmgr *mgr, pjsip_endpoint *endpt, const pj_sockaddr *rem_addr, int addr_len, pjsip_tx_data *tdata, pjsip_transport **transport)

Create new outbound connection suitable for sending SIP message to specified remote address by also considering outgoing SIP message data. Note that the factory is responsible for both creating the transport and registering it to the transport manager.

Destroy the listener.


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

 


PJSIP Open Source, high performance, small footprint, and very very portable SIP stack
Copyright (C) 2006-2008 Teluu Inc.