- Timestamp:
- Mar 2, 2007 7:06:05 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib-util/include/pjlib-util/stun_session.h
r1021 r1034 24 24 #include <pjlib-util/stun_transaction.h> 25 25 #include <pj/list.h> 26 #include <pj/timer.h> 26 27 27 28 PJ_BEGIN_DECL … … 140 141 141 142 pj_stun_client_tsx *client_tsx; /**< Client STUN transaction. */ 142 pj_uint8_t client_key[12];/**< Client transaction key. */ 143 pj_uint32_t msg_magic; /**< Message magic. */ 144 pj_uint8_t msg_key[12]; /**< Message/transaction key. */ 143 145 144 146 void *pkt; /**< The STUN packet. */ … … 146 148 unsigned pkt_size; /**< The actual length of STUN pkt. */ 147 149 150 unsigned options; /**< Options specified when sending */ 148 151 unsigned addr_len; /**< Length of destination address. */ 149 152 const pj_sockaddr_t *dst_addr; /**< Destination address. */ 153 154 pj_timer_entry res_timer; /**< Response cache timer. */ 150 155 }; 151 156 … … 155 160 * messages. These options may be specified as bitmask. 156 161 */ 157 enum pj_stun_session_ option162 enum pj_stun_session_send_option 158 163 { 159 164 /** … … 172 177 * Add STUN fingerprint to the message. 173 178 */ 174 PJ_STUN_USE_FINGERPRINT = 4 179 PJ_STUN_USE_FINGERPRINT = 4, 180 181 /** 182 * Instruct the session to cache outgoing response. This can only be 183 * used when sending outgoing response message, and when it's specified, 184 * the session will use \a res_cache_msec settings in pj_stun_endpoint 185 * as the duration of the cache. 186 */ 187 PJ_STUN_CACHE_RESPONSE = 8 175 188 }; 176 189 … … 258 271 const pj_str_t *user, 259 272 const pj_str_t *passwd); 273 260 274 261 275 /** … … 396 410 * 397 411 * @param sess The STUN session instance. 398 * @param options Optional flags, from pj_stun_session_ option.412 * @param options Optional flags, from pj_stun_session_send_option. 399 413 * @param dst_addr The destination socket address. 400 414 * @param addr_len Length of destination address.
Note: See TracChangeset
for help on using the changeset viewer.