Changeset 533 for pjproject/trunk
- Timestamp:
- Jun 22, 2006 12:54:54 AM (18 years ago)
- Location:
- pjproject/trunk/pjmedia
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/transport_udp.h
r518 r533 77 77 78 78 /** 79 * Get media socket info from the specified UDP transport. 80 * 81 * @param tp The UDP transport interface. 82 * @param i Media socket info to be initialized. 83 * 84 * @return PJ_SUCCESS on success. 85 */ 86 PJ_DECL(pj_status_t) pjmedia_transport_udp_get_sock_info(pjmedia_transport *tp, 87 pjmedia_sock_info *i); 88 89 90 /** 79 91 * Create UDP stream transport from existing sockets. Use this function when 80 92 * the sockets have previously been created. -
pjproject/trunk/pjmedia/src/pjmedia/transport_udp.c
r483 r533 49 49 50 50 pj_sock_t rtp_sock; /**< RTP socket */ 51 pj_sockaddr_in rtp_addr_name; /**< Published RTP address. */ 51 52 pj_ioqueue_key_t *rtp_key; /**< RTP socket key in ioqueue */ 52 53 pj_ioqueue_op_key_t rtp_read_op; /**< Pending read operation */ … … 58 59 59 60 pj_sock_t rtcp_sock; /**< RTCP socket */ 61 pj_sockaddr_in rtcp_addr_name; /**< Published RTCP address. */ 60 62 pj_ioqueue_key_t *rtcp_key; /**< RTCP socket key in ioqueue */ 61 63 pj_ioqueue_op_key_t rtcp_read_op; /**< Pending read operation */ … … 207 209 /* Copy socket infos */ 208 210 tp->rtp_sock = si->rtp_sock; 211 tp->rtp_addr_name = si->rtp_addr_name; 209 212 tp->rtcp_sock = si->rtcp_sock; 213 tp->rtcp_addr_name = si->rtcp_addr_name; 210 214 211 215 … … 261 265 pjmedia_transport_udp_close(&tp->base); 262 266 return status; 267 } 268 269 270 /* 271 * Get media socket info. 272 */ 273 PJ_DEF(pj_status_t) pjmedia_transport_udp_get_sock_info(pjmedia_transport *tp, 274 pjmedia_sock_info *inf) 275 { 276 struct transport_udp *udp = (struct transport_udp*)tp; 277 PJ_ASSERT_RETURN(tp && inf, PJ_EINVAL); 278 279 inf->rtp_sock = udp->rtp_sock; 280 inf->rtp_addr_name = udp->rtp_addr_name; 281 inf->rtcp_sock = udp->rtcp_sock; 282 inf->rtcp_addr_name = udp->rtcp_addr_name; 283 284 return PJ_SUCCESS; 263 285 } 264 286
Note: See TracChangeset
for help on using the changeset viewer.