Ignore:
Timestamp:
Nov 11, 2005 7:01:31 PM (18 years ago)
Author:
bennylp
Message:

First clean compile of pjsip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/main/pjsip/include/pjsip/sip_transport.h

    • Property svn:keywords set to Id
    r38 r43  
    11/* $Id$ 
    2  * 
    32 */ 
    43#ifndef __PJSIP_SIP_TRANSPORT_H__ 
     
    1413#include <pj/sock.h> 
    1514#include <pj/list.h> 
     15#include <pj/ioqueue.h> 
    1616 
    1717PJ_BEGIN_DECL 
     
    3737struct pjsip_rx_data 
    3838{ 
    39     PJ_DECL_LIST_MEMBER(struct pjsip_rx_data) 
     39    //PJ_DECL_LIST_MEMBER(struct pjsip_rx_data); 
    4040 
    4141    /** Memory pool for this buffer. */ 
    4242    pj_pool_t           *pool; 
     43 
     44    /** Ioqueue op key. */ 
     45    pj_ioqueue_op_key_t  op_key; 
    4346 
    4447    /** Time when the message was received. */ 
     
    7477    pjsip_from_hdr      *from; 
    7578 
    76     /** The tag in the From header as found in the message. */ 
    77     pj_str_t             from_tag; 
    78  
    7979    /** The To header as found in the message. */ 
    8080    pjsip_to_hdr        *to; 
    8181 
    82     /** The To tag header as found in the message. */ 
    83     pj_str_t             to_tag; 
    84  
    8582    /** The topmost Via header as found in the message. */ 
    8683    pjsip_via_hdr       *via; 
     
    8885    /** The CSeq header as found in the message. */ 
    8986    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; 
    90105 
    91106    /** The list of error generated by the parser when parsing this message. */ 
     
    110125struct pjsip_tx_data 
    111126{ 
    112     PJ_DECL_LIST_MEMBER(struct pjsip_tx_data) 
     127    PJ_DECL_LIST_MEMBER(struct pjsip_tx_data); 
    113128 
    114129    /** Memory pool for this buffer. */ 
     
    127142    /** The transport manager for this buffer. */ 
    128143    pjsip_transport_mgr *mgr; 
     144 
     145    /** Ioqueue asynchronous operation key. */ 
     146    pj_ioqueue_op_key_t  op_key; 
    129147 
    130148    /** The message in this buffer. */ 
     
    357375 * @param tdata         The outgoing message buffer. 
    358376 * @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 */ 
     382PJ_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); 
    366386 
    367387 
     
    387407 * @return              The transmit buffer data, or NULL on error. 
    388408 */ 
    389 pjsip_tx_data* pjsip_tx_data_create( pjsip_transport_mgr *mgr ); 
     409pj_status_t pjsip_tx_data_create( pjsip_transport_mgr *mgr, 
     410                                  pjsip_tx_data **tdata ); 
    390411 
    391412 
Note: See TracChangeset for help on using the changeset viewer.