Ignore:
Timestamp:
Oct 29, 2006 6:13:13 PM (17 years ago)
Author:
bennylp
Message:

Another Symbian commit, ported all PJSIP libraries and sipstateless runs without crashes (still no SIP message though)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/symbian/pjsip/src/pjsip/sip_transport_udp.c

    r377 r789  
    1717 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  
    1818 */ 
    19 #include <pjsip/sip_transport.h> 
     19#include <pjsip/sip_transport_udp.h> 
    2020#include <pjsip/sip_endpoint.h> 
    2121#include <pjsip/sip_errno.h> 
     
    8282    pj_pool_reset(pool); 
    8383 
    84     rdata = pj_pool_zalloc(pool, sizeof(pjsip_rx_data)); 
     84    rdata = (pjsip_rx_data*) pj_pool_zalloc(pool, sizeof(pjsip_rx_data)); 
    8585 
    8686    /* Init tp_info part. */ 
     
    261261                                   pj_ssize_t bytes_sent) 
    262262{ 
    263     struct udp_transport *tp = pj_ioqueue_get_user_data(key); 
     263    struct udp_transport *tp = (struct udp_transport *) pj_ioqueue_get_user_data(key); 
    264264    pjsip_tx_data_op_key *tdata_op_key = (pjsip_tx_data_op_key*)op_key; 
    265265 
     
    337337 
    338338    /* Unregister from ioqueue. */ 
    339     if (tp->key) 
     339    if (tp->key) { 
    340340        pj_ioqueue_unregister(tp->key); 
     341        tp->sock = PJ_INVALID_SOCKET; 
     342    } 
    341343 
    342344    /* Close socket. */ 
     
    425427 
    426428    /* Create the UDP transport object. */ 
    427     tp = pj_pool_zalloc(pool, sizeof(struct udp_transport)); 
     429    tp = (struct udp_transport*)  
     430         pj_pool_zalloc(pool, sizeof(struct udp_transport)); 
    428431 
    429432    /* Save pool. */ 
     
    474477 
    475478    /* Transport info. */ 
    476     tp->base.info = pj_pool_alloc(pool, 80); 
     479    tp->base.info = (char*) pj_pool_alloc(pool, 80); 
    477480    pj_ansi_sprintf(  
    478481        tp->base.info, "udp %s:%d [published as %s:%d]", 
     
    519522    /* Create rdata and put it in the array. */ 
    520523    tp->rdata_cnt = 0; 
    521     tp->rdata = pj_pool_calloc(tp->base.pool, async_cnt,  
     524    tp->rdata = (pjsip_rx_data**) 
     525                pj_pool_calloc(tp->base.pool, async_cnt,  
    522526                               sizeof(pjsip_rx_data*)); 
    523527    for (i=0; i<async_cnt; ++i) { 
     
    553557        } else if (status != PJ_EPENDING) { 
    554558            /* Error! */ 
     559            pj_atomic_dec(tp->base.ref_cnt); 
    555560            pjsip_transport_unregister(tp->base.tpmgr, &tp->base); 
    556561            return status; 
Note: See TracChangeset for help on using the changeset viewer.