2008年5月26日 星期一

ortp layer structure

Receive the rtp packets
rtp_session_recv_with_ts
-->rtp_session_recvm_with_ts
-->rtp_session_rtp_recv
-->
recv(sockfd,mp->b_wptr,bufsz,0); or
(session->rtp.tr->t_recvfrom)(session->rtp.tr, mp->b_wptr,
bufsz, 0,
(struct sockaddr *) &remaddr,
&addrlen); or
recvfrom(sockfd, mp->b_wptr,
bufsz, 0,
(struct sockaddr *) &remaddr,
&addrlen);
After received the packet, the ortp will use rtp_session_rtp_parse to parse the incoming packet to determine if the received packet was fit the RTP format or not?

The ortp library internally uses the data structure "mblk_t" to store the received packets.

沒有留言: