RDK Documentation (Open Sourced RDK Components)
stun::client Class Reference
Collaboration diagram for stun::client:
Collaboration graph

Public Member Functions

bool bind (std::string const &hostname, uint16_t port, std::string const &interface, protocol proto, uint16_t bind_timeout, uint16_t cache_timeout, bind_result &result)
 
network_access_type discover_network_access_type (server const &srv)
 
void set_verbose (bool b)
 

Private Member Functions

void verbose (char const *format,...) __attribute__((format(printf
 
void void create_udp_socket (int inet_family)
 
std::unique_ptr< messagesend_binding_request (std::chrono::milliseconds wait_time)
 
std::unique_ptr< messagesend_binding_request (sockaddr_storage const &addr, std::chrono::milliseconds wait_time)
 
messagesend_message (sockaddr_storage const &remote_adr, message const &req, std::chrono::milliseconds wait_time, int *local_iface_index=nullptr)
 

Private Attributes

server m_server
 
protocol m_protocol
 
std::string m_interface
 
uint16_t m_bind_timeout
 
uint16_t m_cache_timeout
 
std::chrono::time_point< std::chrono::steady_clock > m_last_cache_time
 
bind_result m_last_result
 
bool m_verbose
 
int m_fd
 

yes

Definition at line 145 of file StunClient.h.


The documentation for this class was generated from the following files: