Ignore:
Timestamp:
Sep 18, 2018 12:07:50 PM (9 months ago)
Author:
riza
Message:

Close #2150: Add new callback to notify when accept operation fails on TLS
listener.

File:
1 edited

Legend:

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

    r5821 r5885  
    7676 
    7777/** 
     78 * This structure describe the parameter passed from #on_accept_fail_cb(). 
     79 */ 
     80typedef struct pjsip_tls_on_accept_fail_param { 
     81    /** 
     82     * Remote address of the fail accept operation of the TLS listener. 
     83     */ 
     84    const pj_sockaddr_t *remote_addr; 
     85 
     86    /** 
     87     * Error status of the fail accept operation of the TLS listener. 
     88     */ 
     89    pj_status_t status; 
     90 
     91} pjsip_tls_on_accept_fail_param; 
     92 
     93/** 
    7894 * TLS transport settings. 
    7995 */ 
     
    307323     */ 
    308324    pj_bool_t sockopt_ignore_error; 
     325 
     326    /** 
     327     * Callback to be called when a accept operation of the TLS listener fails. 
     328     * 
     329     * @param param         The parameter to the callback. 
     330     */ 
     331    void(*on_accept_fail_cb)(const pjsip_tls_on_accept_fail_param *param); 
    309332 
    310333} pjsip_tls_setting; 
Note: See TracChangeset for help on using the changeset viewer.