RTP SSRC Queue
[RTP Layer]

Collaboration diagram for RTP SSRC Queue:

Functions

rtp_ssrc * rtp_active_ssrc_queue (rtp_session *rtp_sess_head)
rtp_ssrc * rtp_next_active_ssrc (rtp_ssrc *ssrc)
int rtp_ssrc_check (rtp_session *, uint32_t, rtp_ssrc **, nms_sockaddr *, enum rtp_protos)
int rtp_ssrc_init (rtp_session *, rtp_ssrc **, uint32_t, nms_sockaddr *, enum rtp_protos)

Detailed Description

RTP SSRC Queue

Function Documentation

rtp_ssrc* rtp_active_ssrc_queue ( rtp_session *  rtp_sess_head  ) 

Gets the queue of active sources

Parameters:
rtp_sess_head The head of the rtp session queue. Can be retrieved from the RTSP controller with rtsp_get_rtp_queue
Returns:
The first active source, NULL if there isn't any.

Definition at line 37 of file rtp_ssrc_queue.c.

Referenced by rtp_session_get_ssrc().

rtp_ssrc* rtp_next_active_ssrc ( rtp_ssrc *  ssrc  ) 

Gets the next active source

Parameters:
ssrc The source from which to retrieve the subsequent source
Returns:
The next active source or NULL if ssrc was the last one

Definition at line 53 of file rtp_ssrc_queue.c.

Referenced by rtp_session_get_ssrc().

int rtp_ssrc_check ( rtp_session *  rtp_sess,
uint32_t  ssrc,
rtp_ssrc **  stm_src,
nms_sockaddr *  recfrom,
enum rtp_protos  proto_type 
)

Checks the ssrc of incoming packets and creates a new synchronization source if it wasn't already known.

Parameters:
rtp_sess The session for which to create the synchronization source
ssrc The RTP SSRC value
stm_ssrc Where to create the new synchronization source if it isn't already known
recfrom The link to check for the packets with the ssrc
proto_type The type of protocol used by the link
Returns:
SSRC_KNOWN, SSRC_NEW, SSRC_COLLISION, -1 on internal fatal error.

Definition at line 214 of file rtp_ssrc_queue.c.

References poinit(), and rtp_ssrc_init().

Referenced by rtcp_recv(), and rtp_recv().

Here is the call graph for this function:

int rtp_ssrc_init ( rtp_session *  rtp_sess,
rtp_ssrc **  stm_src,
uint32_t  ssrc,
nms_sockaddr *  recfrom,
enum rtp_protos  proto_type 
)

Initializes a new synchronization source and appens it to the queue

Parameters:
rtp_sess The RTP session for which to create the new source
stm_src A pointer to the pointer to initialize with the new source
ssrc The RTP ssrc value from which to create the source
recfrom The link from which to receive the data for the source
proto_type The protocol type for the source
Returns:
0 if everything was ok, -1 on initialization errors

Definition at line 125 of file rtp_ssrc_queue.c.

Referenced by rtp_ssrc_check().


Generated on Tue Feb 3 03:10:03 2009 for libnemesi by  doxygen 1.5.4