Changeset 2642 for pjproject/trunk/pjnath/include/pjnath/turn_sock.h
- Timestamp:
- Apr 22, 2009 5:20:24 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/include/pjnath/turn_sock.h
r2589 r2642 33 33 /* **************************************************************************/ 34 34 /** 35 * @defgroup PJNATH_TURN_SOCK TURN client transport 36 * @brief Client transport utilizing TURN relay 37 * @ingroup PJNATH_TURN 38 * @{ 39 * 40 * The TURN relay client transport can be used to relay data from the client 41 * to peer via a TURN relay. The application establishes TURN connection to 42 * the TURN server using UDP or TCP as the transport, then creates a relay 43 * address in the TURN server to be advertised to remote peer(s) as the 44 * transport address. When application sends data to a remote address via 45 * this transport, the data will be sent via the TURN relay, and vice versa. 35 @addtogroup PJNATH_TURN_SOCK 36 @{ 37 38 This is a ready to use object for relaying application data via a TURN server, 39 by managing all the operations in \ref turn_op_sec. 40 41 \section turnsock_using_sec Using TURN transport 42 43 This object provides a thin wrapper to the \ref PJNATH_TURN_SESSION, hence the 44 API is very much the same (apart from the obvious difference in the names). 45 Please see \ref PJNATH_TURN_SESSION for the documentation on how to use the 46 session. 47 48 \section turnsock_samples_sec Samples 49 50 The \ref turn_client_sample is a sample application to use the 51 \ref PJNATH_TURN_SOCK. 52 53 Also see <b>\ref samples_page</b> for other samples. 54 46 55 */ 47 56 … … 207 216 208 217 /** 218 * Configure the SOFTWARE name to be sent in all STUN requests by the 219 * TURN session. 220 * 221 * @param turn_sock The TURN transport instance. 222 * @param sw Software name string. If this argument is NULL or 223 * empty, the session will not include SOFTWARE attribute 224 * in STUN requests and responses. 225 * 226 * @return PJ_SUCCESS on success, or the appropriate error code. 227 */ 228 PJ_DECL(pj_status_t) pj_turn_sock_set_software_name(pj_turn_sock *turn_sock, 229 const pj_str_t *sw); 230 231 232 /** 209 233 * Allocate a relay address/resource in the TURN server. This function 210 234 * will resolve the TURN server using DNS SRV (if desired) and send TURN
Note: See TracChangeset
for help on using the changeset viewer.