Changeset 1140 for pjproject/trunk/pjnath/include/pjnath/stun_transaction.h
- Timestamp:
- Apr 3, 2007 6:01:27 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/include/pjnath/stun_transaction.h
r1110 r1140 91 91 pj_size_t pkt_size); 92 92 93 /** 94 * This callback is called after the timer that was scheduled by 95 * #pj_stun_client_tsx_schedule_destroy() has elapsed. Application 96 * should call #pj_stun_client_tsx_destroy() upon receiving this 97 * callback. 98 * 99 * This callback is optional if application will not call 100 * #pj_stun_client_tsx_schedule_destroy(). 101 * 102 * @param tsx The STUN transaction instance. 103 */ 104 void (*on_destroy)(pj_stun_client_tsx *tsx); 105 93 106 } pj_stun_tsx_cb; 94 107 … … 117 130 118 131 /** 119 * Destroy a STUN client transaction. 132 * Schedule timer to destroy the transaction after the transaction is 133 * complete. Application normally calls this function in the on_complete() 134 * callback. When this timer elapsed, the on_destroy() callback will be 135 * called. 136 * 137 * This is convenient to let the STUN transaction absorbs any response 138 * for the previous request retransmissions. If application doesn't want 139 * this, it can destroy the transaction immediately by calling 140 * #pj_stun_client_tsx_destroy(). 141 * 142 * @param tsx The STUN transaction. 143 * @param delay The delay interval before on_destroy() callback 144 * is called. 145 * 146 * @return PJ_SUCCESS on success, or the appropriate error code. 147 */ 148 PJ_DECL(pj_status_t) 149 pj_stun_client_tsx_schedule_destroy(pj_stun_client_tsx *tsx, 150 const pj_time_val *delay); 151 152 153 /** 154 * Destroy a STUN client transaction immediately. This function can be 155 * called at any time to stop the transaction and destroy it. 120 156 * 121 157 * @param tsx The STUN transaction.
Note: See TracChangeset
for help on using the changeset viewer.