Changeset 109 for pjproject/trunk/pjsip/include/pjsip/sip_transport.h
- Timestamp:
- Jan 7, 2006 6:44:25 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip/sip_transport.h
r107 r109 110 110 pjsip_transport_get_default_port_for_type(pjsip_transport_type_e type); 111 111 112 /** 113 * Get transport type name. 114 * 115 * @param t Transport type. 116 * 117 * @return Transport name. 118 */ 119 PJ_DECL(const char*) pjsip_transport_get_type_name(pjsip_transport_type_e t); 120 112 121 113 122 /***************************************************************************** … … 203 212 /** The parsed message, if any. */ 204 213 pjsip_msg *msg; 214 215 /** Short description about the message. 216 * Application should use #pjsip_rx_data_get_info() instead. 217 */ 218 char *info; 205 219 206 220 /** The Call-ID header as found in the message. */ … … 259 273 260 274 }; 275 276 /** 277 * Get printable information about the message in the rdata. 278 * 279 * @param rdata The receive data buffer. 280 * 281 * @return Printable information. 282 */ 283 PJ_DECL(char*) pjsip_rx_data_get_info(pjsip_rx_data *rdata); 261 284 262 285 … … 304 327 char obj_name[PJ_MAX_OBJ_NAME]; 305 328 329 /** Short information describing this buffer and the message in it. 330 * Application should use #pjsip_tx_data_get_info() instead of 331 * directly accessing this member. 332 */ 333 char *info; 334 306 335 /** For response message, this contains the reference to timestamp when 307 336 * the original request message was received. The value of this field … … 340 369 void *token; 341 370 void (*cb)(void*, pjsip_tx_data*, pj_ssize_t); 371 372 /** Transport information, only valid during on_tx_request() and 373 * on_tx_response() callback. 374 */ 375 struct 376 { 377 pjsip_transport *transport; /**< Transport being used. */ 378 pj_sockaddr dst_addr; /**< Destination address. */ 379 int dst_addr_len; /**< Length of address. */ 380 char dst_name[16]; /**< Destination address. */ 381 int dst_port; /**< Destination port. */ 382 } tp_info; 342 383 }; 343 384 … … 397 438 */ 398 439 PJ_DECL(void) pjsip_tx_data_invalidate_msg( pjsip_tx_data *tdata ); 440 441 /** 442 * Get short printable info about the transmit data. This will normally return 443 * short information about the message. 444 * 445 * @param tdata The transmit buffer. 446 * 447 * @return Null terminated info string. 448 */ 449 PJ_DECL(char*) pjsip_tx_data_get_info( pjsip_tx_data *tdata ); 399 450 400 451 … … 594 645 * @param pool Pool. 595 646 * @param endpt Endpoint instance. 596 * @param cb Callback to receive incoming message. 647 * @param rx_cb Callback to receive incoming message. 648 * @param tx_cb Callback to be called before transport manager is sending 649 * outgoing message. 597 650 * @param p_mgr Pointer to receive the new transport manager. 598 651 * … … 601 654 PJ_DECL(pj_status_t) pjsip_tpmgr_create( pj_pool_t *pool, 602 655 pjsip_endpoint * endpt, 603 void (*cb)(pjsip_endpoint*, 604 pj_status_t, 605 pjsip_rx_data *), 656 void (*rx_cb)(pjsip_endpoint*, 657 pj_status_t, 658 pjsip_rx_data *), 659 pj_status_t (*tx_cb)(pjsip_endpoint*, 660 pjsip_tx_data*), 606 661 pjsip_tpmgr **p_mgr); 607 662
Note: See TracChangeset
for help on using the changeset viewer.