Example on how to create transport adapter.
This describes a sample implementation of transport adapter, similar to the way the SRTP transport adapter works.
Create the transport adapter, specifying the underlying transport to be used to send and receive RTP/RTCP packets.
|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.|
- PJ_SUCCESS on success, or the appropriate error code.