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
| Return | Name | Description |
|---|---|---|
net::TransportType | transport | Protocol on which the request arrived (UDP or TCP). |
net::Address | localAddress | Server's local address that received the request. |
net::Address | remoteAddress | Client's remote address (used to build the 5-tuple). |
std::string | hash | Pre-computed MessageIntegrity key for signing responses. |
transport
net::TransportType transportProtocol on which the request arrived (UDP or TCP).
localAddress
net::Address localAddressServer's local address that received the request.
remoteAddress
net::Address remoteAddressClient's remote address (used to build the 5-tuple).
hash
std::string hashPre-computed MessageIntegrity key for signing responses.
Public Methods
| Return | Name | Description |
|---|---|---|
Request inline | Constructs 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
messageParsed STUN message.transportTransport protocol on which the message arrived.localAddressServer-side local address.remoteAddressClient-side remote address.
