Changeset 539 for pjproject/trunk/pjmedia/include/pjmedia/transport_udp.h
- Timestamp:
- Jun 22, 2006 6:49:45 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/transport_udp.h
r533 r539 57 57 58 58 /** 59 * Create an RTP and RTCP sockets and bind RTP the socket to the specified 59 * UDP transport info. 60 */ 61 typedef struct pjmedia_transport_udp_info 62 { 63 /** 64 * Media socket info. 65 */ 66 pjmedia_sock_info skinfo; 67 68 } pjmedia_transport_udp_info; 69 70 71 /** 72 * Create an RTP and RTCP sockets and bind the sockets to the specified 60 73 * port to create media transport. 61 74 * … … 77 90 78 91 /** 92 * Create an RTP and RTCP sockets and bind the sockets to the specified 93 * address and port to create media transport. 94 * 95 * @param endpt The media endpoint instance. 96 * @param name Optional name to be assigned to the transport. 97 * @param addr Optional local address to bind the sockets to. If this 98 * argument is NULL or empty, the sockets will be bound 99 * to all interface. 100 * @param port UDP port number for the RTP socket. The RTCP port number 101 * will be set to one above RTP port. 102 * @param options Options, bitmask of #pjmedia_transport_udp_options. 103 * @param p_tp Pointer to receive the transport instance. 104 * 105 * @return PJ_SUCCESS on success. 106 */ 107 PJ_DECL(pj_status_t) pjmedia_transport_udp_create2(pjmedia_endpt *endpt, 108 const char *name, 109 const pj_str_t *addr, 110 int port, 111 unsigned options, 112 pjmedia_transport **p_tp); 113 114 /** 79 115 * Get media socket info from the specified UDP transport. 80 116 * 81 117 * @param tp The UDP transport interface. 82 * @param i Media socket info to be initialized.118 * @param info Media socket info to be initialized. 83 119 * 84 120 * @return PJ_SUCCESS on success. 85 121 */ 86 PJ_DECL(pj_status_t) pjmedia_transport_udp_get_sock_info(pjmedia_transport *tp, 87 pjmedia_sock_info *i); 122 PJ_DECL(pj_status_t) 123 pjmedia_transport_udp_get_info( pjmedia_transport *tp, 124 pjmedia_transport_udp_info *info); 88 125 89 126
Note: See TracChangeset
for help on using the changeset viewer.