Changeset 43 for pjproject/main/pjsip/include/pjsip/sip_transport.h
- Timestamp:
- Nov 11, 2005 7:01:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/main/pjsip/include/pjsip/sip_transport.h
- Property svn:keywords set to Id
r38 r43 1 1 /* $Id$ 2 *3 2 */ 4 3 #ifndef __PJSIP_SIP_TRANSPORT_H__ … … 14 13 #include <pj/sock.h> 15 14 #include <pj/list.h> 15 #include <pj/ioqueue.h> 16 16 17 17 PJ_BEGIN_DECL … … 37 37 struct pjsip_rx_data 38 38 { 39 PJ_DECL_LIST_MEMBER(struct pjsip_rx_data)39 //PJ_DECL_LIST_MEMBER(struct pjsip_rx_data); 40 40 41 41 /** Memory pool for this buffer. */ 42 42 pj_pool_t *pool; 43 44 /** Ioqueue op key. */ 45 pj_ioqueue_op_key_t op_key; 43 46 44 47 /** Time when the message was received. */ … … 74 77 pjsip_from_hdr *from; 75 78 76 /** The tag in the From header as found in the message. */77 pj_str_t from_tag;78 79 79 /** The To header as found in the message. */ 80 80 pjsip_to_hdr *to; 81 81 82 /** The To tag header as found in the message. */83 pj_str_t to_tag;84 85 82 /** The topmost Via header as found in the message. */ 86 83 pjsip_via_hdr *via; … … 88 85 /** The CSeq header as found in the message. */ 89 86 pjsip_cseq_hdr *cseq; 87 88 /** Max forwards header. */ 89 pjsip_max_forwards_hdr *max_fwd; 90 91 /** The first route header. */ 92 pjsip_route_hdr *route; 93 94 /** The first record-route header. */ 95 pjsip_rr_hdr *record_route; 96 97 /** Content-type header. */ 98 pjsip_ctype_hdr *ctype; 99 100 /** Content-length header. */ 101 pjsip_clen_hdr *clen; 102 103 /** The first Require header. */ 104 pjsip_require_hdr *require; 90 105 91 106 /** The list of error generated by the parser when parsing this message. */ … … 110 125 struct pjsip_tx_data 111 126 { 112 PJ_DECL_LIST_MEMBER(struct pjsip_tx_data) 127 PJ_DECL_LIST_MEMBER(struct pjsip_tx_data); 113 128 114 129 /** Memory pool for this buffer. */ … … 127 142 /** The transport manager for this buffer. */ 128 143 pjsip_transport_mgr *mgr; 144 145 /** Ioqueue asynchronous operation key. */ 146 pj_ioqueue_op_key_t op_key; 129 147 130 148 /** The message in this buffer. */ … … 357 375 * @param tdata The outgoing message buffer. 358 376 * @param addr The remote address. 359 * 360 * @return The number of bytes sent, or zero if the connection 361 * has closed, or -1 on error. 362 */ 363 PJ_DECL(int) pjsip_transport_send_msg( pjsip_transport_t *tr, 364 pjsip_tx_data *tdata, 365 const pj_sockaddr_in *addr); 377 * @param sent If not null, it will be filled up with the length of 378 * data sent. 379 * 380 * @return PJ_SUCCESS on success, or the appropriate error code. 381 */ 382 PJ_DECL(pj_status_t) pjsip_transport_send_msg( pjsip_transport_t *tr, 383 pjsip_tx_data *tdata, 384 const pj_sockaddr_in *addr, 385 pj_ssize_t *sent); 366 386 367 387 … … 387 407 * @return The transmit buffer data, or NULL on error. 388 408 */ 389 pjsip_tx_data* pjsip_tx_data_create( pjsip_transport_mgr *mgr ); 409 pj_status_t pjsip_tx_data_create( pjsip_transport_mgr *mgr, 410 pjsip_tx_data **tdata ); 390 411 391 412
Note: See TracChangeset
for help on using the changeset viewer.