WARNING: The online documentation has moved to https://docs.pjsip.org.
Visit the new documentation at https://docs.pjsip.org:
Home --> Documentations --> PJMEDIA Reference
#include <transport.h>
This structure describes the data passed when calling pjmedia_transport_attach2().
Forward declaration for media transport attach param.
The media stream.
Indicate the stream type, either it's audio (PJMEDIA_TYPE_AUDIO) or video (PJMEDIA_TYPE_VIDEO).
Remote RTP address to send RTP packet to.
Referenced by pjmedia_transport_attach(), and pjmedia_transport_attach2().
Optional remote RTCP address. If the argument is NULL or if the address is zero, the RTCP address will be calculated from the RTP address (which is RTP port plus one).
Length of the remote address.
Arbitrary user data to be set when the callbacks are called.
Callback to be called when RTP packet is received on the transport.
Callback to be called when RTCP packet is received on the transport.