Ignore:
Timestamp:
Sep 15, 2017 5:32:08 AM (3 years ago)
Author:
riza
Message:

Re #2041: Implement API to handle IP address change.

File:
1 edited

Legend:

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

    r4860 r5649  
    226226PJ_DECL(pj_sock_t) pjsip_tcp_transport_get_socket(pjsip_transport *transport); 
    227227 
     228/** 
     229 * Start the TCP listener, if the listener is not started yet. This is useful 
     230 * to start the listener manually, if listener was not started when  
     231 * PJSIP_TCP_TRANSPORT_DONT_CREATE_LISTENER is set to 0.  
     232 * 
     233 * @param factory       The SIP TCP transport factory. 
     234 * 
     235 * @param local         The address where the listener should be bound to.  
     236 *                      Both IP interface address and port fields are optional. 
     237 *                      If IP interface address is not specified, socket 
     238 *                      will be bound to PJ_INADDR_ANY. If port is not 
     239 *                      specified, socket will be bound to any port 
     240 *                      selected by the operating system. 
     241 * 
     242 * @param a_name        The published address for the listener.  
     243 *                      If this argument is NULL, then the bound address will  
     244 *                      be used as the published address. 
     245 * 
     246 * @return              PJ_SUCCESS when the listener has been successfully 
     247 *                      started. 
     248 */ 
     249PJ_DECL(pj_status_t) pjsip_tcp_transport_lis_start(pjsip_tpfactory *factory, 
     250                                                const pj_sockaddr *local, 
     251                                                const pjsip_host_port *a_name); 
     252 
     253/** 
     254 * Restart the TCP listener. This will close the listener socket and recreate 
     255 * the socket based on the config used when starting the transport. 
     256 * 
     257 * @param factory       The SIP TCP transport factory. 
     258 *  
     259 * @param local         The address where the listener should be bound to. 
     260 *                      Both IP interface address and port fields are optional. 
     261 *                      If IP interface address is not specified, socket 
     262 *                      will be bound to PJ_INADDR_ANY. If port is not 
     263 *                      specified, socket will be bound to any port 
     264 *                      selected by the operating system. 
     265 * 
     266 * @param a_name        The published address for the listener.  
     267 *                      If this argument is NULL, then the bound address will 
     268 *                      be used as the published address. 
     269 * 
     270 * @return              PJ_SUCCESS when the listener has been successfully  
     271 *                      restarted. 
     272 * 
     273 */ 
     274PJ_DECL(pj_status_t) pjsip_tcp_transport_restart(pjsip_tpfactory *factory,  
     275                                                const pj_sockaddr *local, 
     276                                                const pjsip_host_port *a_name); 
     277 
     278 
    228279PJ_END_DECL 
    229280 
Note: See TracChangeset for help on using the changeset viewer.