Ignore:
Timestamp:
Jun 28, 2006 4:46:49 PM (18 years ago)
Author:
bennylp
Message:

Major improvements in PJSIP to support TCP. The changes fall into these categories: (1) the TCP transport implementation itself (*.[hc]), (2) bug-fix in SIP transaction when using reliable transports, (3) support for TCP transport in PJSUA-LIB/PJSUA, and (4) changes in PJSIP-TEST to support TCP testing.

File:
1 edited

Legend:

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

    r550 r563  
    3939 
    4040/** 
    41  * Create, register, and start TCP transport. 
     41 * The TCP incoming connection backlog number. 
     42 * Default: 5 
     43 */ 
     44#ifndef PJSIP_TCP_TRANSPORT_BACKLOG 
     45#   define PJSIP_TCP_TRANSPORT_BACKLOG  5 
     46#endif 
     47 
     48 
     49/** 
     50 * Register support for SIP TCP transport by creating TCP listener on 
     51 * the specified address and port. This function will create an 
     52 * instance of SIP TCP transport factory and register it to the 
     53 * transport manager. 
    4254 * 
    4355 * @param endpt         The SIP endpoint. 
    44  * @param local         Local address to bind. 
    45  * @param async_cnt     Number of simultaneous async operations. 
     56 * @param local         Optional local address to bind, or specify the 
     57 *                      address to bind the server socket to. Both IP  
     58 *                      interface address and port fields are optional. 
     59 *                      If IP interface address is not specified, socket 
     60 *                      will be bound to PJ_INADDR_ANY. If port is not 
     61 *                      specified, socket will be bound to any port 
     62 *                      selected by the operating system. 
     63 * @param async_cnt     Number of simultaneous asynchronous accept() 
     64 *                      operations to be supported. It is recommended that 
     65 *                      the number here corresponds to the number of 
     66 *                      processors in the system (or the number of SIP 
     67 *                      worker threads). 
     68 * @param p_factory     Optional pointer to receive the instance of the 
     69 *                      SIP TCP transport factory just created. 
    4670 * 
    4771 * @return              PJ_SUCCESS when the transport has been successfully 
     
    5175PJ_DECL(pj_status_t) pjsip_tcp_transport_start(pjsip_endpoint *endpt, 
    5276                                               const pj_sockaddr_in *local, 
    53                                                unsigned async_cnt); 
     77                                               unsigned async_cnt, 
     78                                               pjsip_tpfactory **p_factory); 
    5479 
    5580 
Note: See TracChangeset for help on using the changeset viewer.