Changeset 1444 for pjproject/trunk/pjmedia/include/pjmedia/rtcp.h
- Timestamp:
- Sep 20, 2007 11:30:59 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/rtcp.h
r1417 r1444 59 59 struct pjmedia_rtcp_sr 60 60 { 61 pj_uint32_t ssrc; /**< SSRC identification. */62 61 pj_uint32_t ntp_sec; /**< NTP time, seconds part. */ 63 62 pj_uint32_t ntp_frac; /**< NTP time, fractions part. */ … … 118 117 #endif 119 118 unsigned length:16; /**< packet length */ 119 pj_uint32_t ssrc; /**< SSRC identification */ 120 120 }; 121 121 … … 130 130 * manually by application. 131 131 */ 132 struct pjmedia_rtcp_pkt132 typedef struct pjmedia_rtcp_sr_pkt 133 133 { 134 134 pjmedia_rtcp_common common; /**< Common header. */ 135 135 pjmedia_rtcp_sr sr; /**< Sender report. */ 136 136 pjmedia_rtcp_rr rr; /**< variable-length list */ 137 }; 138 139 /** 140 * @see pjmedia_rtcp_pkt 141 */ 142 typedef struct pjmedia_rtcp_pkt pjmedia_rtcp_pkt; 137 } pjmedia_rtcp_sr_pkt; 138 139 /** 140 * This structure declares RTCP RR (Receiver Report) packet. 141 */ 142 typedef struct pjmedia_rtcp_rr_pkt 143 { 144 pjmedia_rtcp_common common; /**< Common header. */ 145 pjmedia_rtcp_rr rr; /**< variable-length list */ 146 } pjmedia_rtcp_rr_pkt; 143 147 144 148 … … 251 255 { 252 256 char *name; /**< Name identification. */ 253 pjmedia_rtcp_pkt rtcp_pkt; /**< Cached RTCP packet. */ 257 pjmedia_rtcp_sr_pkt rtcp_sr_pkt;/**< Cached RTCP packet. */ 258 pjmedia_rtcp_rr_pkt rtcp_rr_pkt;/**< Cached RTCP RR packet. */ 254 259 255 260 pjmedia_rtp_seq_session seq_ctrl; /**< RTCP sequence number control. */ … … 364 369 365 370 /** 366 * Build a RTCP SR+RR packet to be transmitted to remote RTP peer. 371 * Build a RTCP packet to be transmitted to remote RTP peer. This will 372 * create RTCP Sender Report (SR) or Receiver Report (RR) depending on 373 * whether the endpoint has been transmitting RTP since the last interval. 367 374 * Note that this function will reset the interval counters (such as 368 375 * the ones to calculate fraction lost) in the session. … … 370 377 * @param session The RTCP session. 371 378 * @param rtcp_pkt Upon return, it will contain pointer to the 372 * RTCP packet .379 * RTCP packet, which can be RTCP SR or RR. 373 380 * @param len Upon return, it will indicate the size of 374 381 * the RTCP packet. 375 382 */ 376 383 PJ_DECL(void) pjmedia_rtcp_build_rtcp( pjmedia_rtcp_session *session, 377 pjmedia_rtcp_pkt **rtcp_pkt, 378 int *len); 384 void **rtcp_pkt, int *len); 379 385 380 386
Note: See TracChangeset
for help on using the changeset viewer.