Ignore:
Timestamp:
Mar 9, 2008 12:55:00 PM (16 years ago)
Author:
bennylp
Message:

More work for ticket #485: updated pjnath with TURN-07 and added authentication in the server

File:
1 edited

Legend:

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

    r1498 r1852  
    294294 * Create a STUN response message. After the message has been  
    295295 * successfully created, application can send the message by calling  
    296  * pj_stun_session_send_msg(). 
     296 * pj_stun_session_send_msg(). Alternatively application may use 
     297 * pj_stun_session_respond() to create and send response in one function 
     298 * call. 
    297299 * 
    298300 * @param sess      The STUN session instance. 
     
    316318                                                pj_stun_tx_data **p_tdata); 
    317319 
    318  
    319320/** 
    320321 * Send STUN message to the specified destination. This function will encode 
     
    341342                                              unsigned addr_len, 
    342343                                              pj_stun_tx_data *tdata); 
     344 
     345/** 
     346 * Create and send STUN response message. 
     347 * 
     348 * @param sess      The STUN session instance. 
     349 * @param req       The STUN request message to be responded. 
     350 * @param err_code  Error code to be set in the response, if error response 
     351 *                  is to be created, according to pj_stun_status enumeration. 
     352 *                  This argument MUST be zero if successful response is 
     353 *                  to be created. 
     354 * @param err_msg   Optional pointer for the error message string, when 
     355 *                  creating error response. If the value is NULL and the 
     356 *                  \a err_code is non-zero, then default error message will 
     357 *                  be used. 
     358 * @param cache     Specify whether session should cache this response for 
     359 *                  future request retransmission. If TRUE, subsequent request 
     360 *                  retransmission will be handled by the session and it  
     361 *                  will not call request callback. 
     362 * @param dst_addr  Destination address of the response (or equal to the 
     363 *                  source address of the original request). 
     364 * @param addr_len  Address length. 
     365 * 
     366 * @return          PJ_SUCCESS on success, or the appropriate error code. 
     367 */ 
     368PJ_DECL(pj_status_t) pj_stun_session_respond(pj_stun_session *sess,  
     369                                             const pj_stun_msg *req, 
     370                                             unsigned code,  
     371                                             const char *err_msg, 
     372                                             pj_bool_t cache,  
     373                                             const pj_sockaddr_t *dst_addr,  
     374                                             unsigned addr_len); 
    343375 
    344376/** 
Note: See TracChangeset for help on using the changeset viewer.