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

Sample Transport Adapter
[Media Transport]

Example on how to create transport adapter. More...

Functions

PJ_BEGIN_DECL pj_status_t pjmedia_tp_adapter_create (pjmedia_endpt *endpt, const char *name, pjmedia_transport *base_tp, pj_bool_t del_base, pjmedia_transport **p_tp)

Detailed Description

This describes a sample implementation of transport adapter, similar to the way the SRTP transport adapter works.


Function Documentation

PJ_BEGIN_DECL pj_status_t pjmedia_tp_adapter_create ( pjmedia_endpt endpt,
const char *  name,
pjmedia_transport base_tp,
pj_bool_t  del_base,
pjmedia_transport **  p_tp 
)

Create the transport adapter, specifying the underlying transport to be used to send and receive RTP/RTCP packets.

Parameters:
endpt The media endpoint.
name Optional name to identify this media transport for logging purposes.
base_tp The base/underlying media transport to send and receive RTP/RTCP packets.
del_base Specify whether the base transport should also be destroyed when destroy() is called upon us.
p_tp Pointer to receive the media transport instance.
Returns:
PJ_SUCCESS on success, or the appropriate error code.

 


PJMEDIA small footprint Open Source media stack
Copyright (C) 2006-2008 Teluu Inc.