Back to Site
Loading...
Searching...
No Matches
librats::StunMappedAddress Struct Reference

STUN mapped address (result of binding request) More...

#include <stun.h>

Collaboration diagram for librats::StunMappedAddress:
[legend]

Public Member Functions

 StunMappedAddress ()
 
 StunMappedAddress (StunAddressFamily f, const std::string &addr, uint16_t p)
 
bool is_valid () const
 
std::string to_string () const
 

Public Attributes

StunAddressFamily family
 
std::string address
 
uint16_t port
 

Detailed Description

STUN mapped address (result of binding request)

Definition at line 181 of file stun.h.

Constructor & Destructor Documentation

◆ StunMappedAddress() [1/2]

librats::StunMappedAddress::StunMappedAddress ( )
inline

Definition at line 186 of file stun.h.

◆ StunMappedAddress() [2/2]

librats::StunMappedAddress::StunMappedAddress ( StunAddressFamily  f,
const std::string &  addr,
uint16_t  p 
)
inline

Definition at line 187 of file stun.h.

Member Function Documentation

◆ is_valid()

bool librats::StunMappedAddress::is_valid ( ) const
inline

Definition at line 190 of file stun.h.

References address, and port.

◆ to_string()

std::string librats::StunMappedAddress::to_string ( ) const
inline

Definition at line 192 of file stun.h.

References address, family, librats::IPv6, and port.

Member Data Documentation

◆ address

std::string librats::StunMappedAddress::address

Definition at line 183 of file stun.h.

Referenced by is_valid(), and to_string().

◆ family

StunAddressFamily librats::StunMappedAddress::family

Definition at line 182 of file stun.h.

Referenced by to_string().

◆ port

uint16_t librats::StunMappedAddress::port

Definition at line 184 of file stun.h.

Referenced by is_valid(), and to_string().


The documentation for this struct was generated from the following file: