Changeset 54 for pjproject/trunk/pjsip/include/pjsip/sip_endpoint.h
- Timestamp:
- Nov 18, 2005 10:43:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip/sip_endpoint.h
r51 r54 260 260 * @see pjsip_transport_get 261 261 */ 262 PJ_DECL(void) pjsip_endpt_get_transport( pjsip_endpoint *endpt, 263 pj_pool_t *pool, 264 pjsip_transport_type_e type, 265 const pj_sockaddr_in *remote, 266 void *token, 267 pjsip_transport_completion_callback *cb); 268 269 /** 270 * Create listener a new transport listener. A listener is transport object 271 * that is capable of receiving SIP messages. For UDP listener, normally 272 * application should use #pjsip_endpt_create_udp_listener instead if the 273 * application has already created the socket. 274 * This function, like all other endpoint functions, is thread safe. 275 * 276 * @param endpt The endpoint instance. 277 * @param type Transport type (eg. UDP, TCP, etc.) 278 * @param addr The bound address of the transport. 279 * @param addr_name The address to be advertised in SIP messages. For example, 280 * the bound address can be 0.0.0.0, but the advertised address 281 * normally will be the IP address of the host. 282 * 283 * @return Zero if listener is created successfully. 284 */ 285 PJ_DECL(pj_status_t) pjsip_endpt_create_listener( pjsip_endpoint *endpt, 262 PJ_DECL(pj_status_t) pjsip_endpt_alloc_transport( pjsip_endpoint *endpt, 286 263 pjsip_transport_type_e type, 287 pj_sockaddr_in *addr, 288 const pj_sockaddr_in *addr_name); 289 290 /** 291 * Create UDP listener. For UDP, normally the application would create the 292 * socket by itself (for STUN purpose), then it can register the socket as 293 * listener by calling this function. 294 * This function, like all other endpoint functions, is thread safe. 295 * 296 * @param endpt The endpoint instance. 297 * @param sock The socket handle. 298 * @param addr_name The address to be advertised in SIP message. If the socket 299 * has been resolved with STUN, then application may specify 300 * the mapped address in this parameter. 301 * 302 * @return Zero if listener is created successfully. 303 */ 304 PJ_DECL(pj_status_t) pjsip_endpt_create_udp_listener( pjsip_endpoint *endpt, 305 pj_sock_t sock, 306 const pj_sockaddr_in *addr_name); 264 const pj_sockaddr_in *remote, 265 pjsip_transport **p_transport); 307 266 308 267 /**
Note: See TracChangeset
for help on using the changeset viewer.