Changeset 4775 for pjproject


Ignore:
Timestamp:
Mar 4, 2014 2:18:51 AM (8 years ago)
Author:
nanang
Message:

Close #1739: Info of last receive timestamp and data size in TCP/TLS.

Location:
pjproject/trunk/pjsip
Files:
2 edited

Legend:

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

    r4773 r4775  
    801801    pjsip_tpmgr            *tpmgr;          /**< Transport manager.         */ 
    802802    pj_timer_entry          idle_timer;     /**< Timer when ref cnt is zero.*/ 
     803 
     804    pj_timestamp            last_recv_ts;   /**< Last time receiving data.  */ 
     805    pj_size_t               last_recv_len;  /**< Last received data length. */ 
    803806 
    804807    void                   *data;           /**< Internal transport data.   */ 
  • pjproject/trunk/pjsip/src/pjsip/sip_transport.c

    r4773 r4775  
    16111611    current_pkt = rdata->pkt_info.packet; 
    16121612    remaining_len = rdata->pkt_info.len; 
     1613 
     1614    tr->last_recv_len = rdata->pkt_info.len; 
     1615    pj_get_timestamp(&tr->last_recv_ts); 
    16131616     
    16141617    /* Must NULL terminate buffer. This is the requirement of the  
Note: See TracChangeset for help on using the changeset viewer.