The important API calls are documented below. More thorough documentation is being written, but this should provide all of the necessary information to construct a working SR-RTP application. Many of these function calls have a complementary function that should be called when the Congestion Manager is enabled.
srrtp_create_channel creates an SR-RTP communications
channel. This is the API call that initializes the channel. For
use with the Congestion Manager (CM), srrtp_create_cm_channel
provides a means of opening an SR-RTP channel where cm_socktype
specifies the type of CM socket to use (i.e., buffered, rate-controlled,
or ALF).
srrtp_open initializes a connection to a listening SR-RTP socket.
Parameters:
srrtp_open initializes an SR-RTP socket to listen for incoming connections.
Parameters:
This function is called by the application in order to read an ADU from the reassembly buffers into
Parameters:
This function sends an ADU on the SR-RTP data channel. All packet fragmentation, etc., is performed invisibly to the application.
Parameters:
An SR-RTP application must implement this callback. The SR-RTP
layer makes this callback when a complete ADU arrives. The application
is notified when this event occurs, and responds appropriately, usually
by calling srrtp_read.
This is used with the CM if a send callback is made from the CM. It is
a way for the application to send ADUs via callback mechanisms.