Changeset 1852 for pjproject/trunk/pjnath/include/pjnath/stun_session.h
- Timestamp:
- Mar 9, 2008 12:55:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/include/pjnath/stun_session.h
r1498 r1852 294 294 * Create a STUN response message. After the message has been 295 295 * 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. 297 299 * 298 300 * @param sess The STUN session instance. … … 316 318 pj_stun_tx_data **p_tdata); 317 319 318 319 320 /** 320 321 * Send STUN message to the specified destination. This function will encode … … 341 342 unsigned addr_len, 342 343 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 */ 368 PJ_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); 343 375 344 376 /**
Note: See TracChangeset
for help on using the changeset viewer.