Changeset 2589 for pjproject/trunk/pjnath/include/pjnath/turn_session.h
- Timestamp:
- Apr 13, 2009 8:54:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/include/pjnath/turn_session.h
r2394 r2589 435 435 PJ_DECL(void) pj_turn_session_set_log(pj_turn_session *sess, 436 436 unsigned flags); 437 438 439 /** 440 * Configure the SOFTWARE name to be sent in all STUN requests by the 441 * TURN session. 442 * 443 * @param sess The TURN client session. 444 * @param sw Software name string. If this argument is NULL or 445 * empty, the session will not include SOFTWARE attribute 446 * in STUN requests and responses. 447 * 448 * @return PJ_SUCCESS on success, or the appropriate error code. 449 */ 450 PJ_DECL(pj_status_t) pj_turn_session_set_software_name(pj_turn_session *sess, 451 const pj_str_t *sw); 437 452 438 453 … … 520 535 521 536 /** 537 * Create or renew permission in the TURN server for the specified peer IP 538 * addresses. Application must install permission for a particular (peer) 539 * IP address before it sends any data to that IP address, or otherwise 540 * the TURN server will drop the data. 541 * 542 * @param sess The TURN client session. 543 * @param addr_cnt Number of IP addresses. 544 * @param addr Array of peer IP addresses. Only the address family 545 * and IP address portion of the socket address matter. 546 * @param options Specify 1 to let the TURN client session automatically 547 * renew the permission later when they are about to 548 * expire. 549 * 550 * @return PJ_SUCCESS if the operation has been successfully 551 * issued, or the appropriate error code. Note that 552 * the operation itself will complete asynchronously. 553 */ 554 PJ_DECL(pj_status_t) pj_turn_session_set_perm(pj_turn_session *sess, 555 unsigned addr_cnt, 556 const pj_sockaddr addr[], 557 unsigned options); 558 559 560 /** 522 561 * Send a data to the specified peer address via the TURN relay. This 523 562 * function will encapsulate the data as STUN Send Indication or TURN
Note: See TracChangeset
for help on using the changeset viewer.