TURN module (rfc5766)

Request

A STUN message annotated with the transport type and source/destination addresses needed for server-side routing and res

Request

#include <icy/turn/types.h>

Inherits: Message

A STUN message annotated with the transport type and source/destination addresses needed for server-side routing and response generation.

Public Attributes

ReturnNameDescription
net::TransportTypetransportProtocol on which the request arrived (UDP or TCP).
net::AddresslocalAddressServer's local address that received the request.
net::AddressremoteAddressClient's remote address (used to build the 5-tuple).
std::stringhashPre-computed MessageIntegrity key for signing responses.

transport

net::TransportType transport

Protocol on which the request arrived (UDP or TCP).


localAddress

net::Address localAddress

Server's local address that received the request.


remoteAddress

net::Address remoteAddress

Client's remote address (used to build the 5-tuple).


hash

std::string hash

Pre-computed MessageIntegrity key for signing responses.

Public Methods

ReturnNameDescription
Request inlineConstructs a Request by copying a parsed STUN message and annotating it with the transport context.

Request

inline

inline Request(const stun::Message & message, net::TransportType transport, const net::Address & localAddress, const net::Address & remoteAddress)

Constructs a Request by copying a parsed STUN message and annotating it with the transport context.

Parameters

  • message Parsed STUN message.

  • transport Transport protocol on which the message arrived.

  • localAddress Server-side local address.

  • remoteAddress Client-side remote address.