Ignore:
Timestamp:
Apr 9, 2008 9:38:12 AM (16 years ago)
Author:
bennylp
Message:

More ticket #485: huge changeset to support TURN TCP. Please see ticket #485 for the details

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/include/pjnath/turn_session.h

    r1880 r1913  
    5656 
    5757 
    58 /** TURN transport types */ 
     58/**  
     59 * TURN transport types, which will be used both to specify the connection  
     60 * type for reaching TURN server and the type of allocation transport to be  
     61 * requested to server (the REQUESTED-TRANSPORT attribute). 
     62 */ 
    5963typedef enum pj_turn_tp_type 
    6064{ 
    61     PJ_TURN_TP_UDP = 17,    /**< UDP.   */ 
    62     PJ_TURN_TP_TCP = 6,     /**< TCP.   */ 
    63     PJ_TURN_TP_TLS = 256    /**< TLS.   */ 
     65    /** 
     66     * UDP transport, which value corresponds to IANA protocol number. 
     67     */ 
     68    PJ_TURN_TP_UDP = 17, 
     69 
     70    /** 
     71     * TCP transport, which value corresponds to IANA protocol number. 
     72     */ 
     73    PJ_TURN_TP_TCP = 6, 
     74 
     75    /** 
     76     * TLS transport. The TLS transport will only be used as the connection 
     77     * type to reach the server and never as the allocation transport type. 
     78     */ 
     79    PJ_TURN_TP_TLS = 255 
     80 
    6481} pj_turn_tp_type; 
    6582 
     
    219236} pj_turn_session_info; 
    220237 
     238 
     239/** 
     240 * Create default pj_turn_alloc_param. 
     241 */ 
     242PJ_DECL(void) pj_turn_alloc_param_default(pj_turn_alloc_param *prm); 
     243 
     244/** 
     245 * Duplicate pj_turn_alloc_param. 
     246 */ 
     247PJ_DECL(void) pj_turn_alloc_param_copy(pj_pool_t *pool,  
     248                                       pj_turn_alloc_param *dst, 
     249                                       const pj_turn_alloc_param *src); 
    221250 
    222251/** 
     
    240269 
    241270/** 
    242  * Destroy TURN client session. 
     271 * Shutdown TURN client session. 
     272 */ 
     273PJ_DECL(pj_status_t) pj_turn_session_shutdown(pj_turn_session *sess); 
     274 
     275 
     276/** 
     277 * Forcefully destroy the TURN session. 
    243278 */ 
    244279PJ_DECL(pj_status_t) pj_turn_session_destroy(pj_turn_session *sess); 
Note: See TracChangeset for help on using the changeset viewer.