Connecter used after STUN exchange to connect from both sides to each other.
More...
|
std::string | token |
| Token of this connection.
|
|
uint8_t | tracking_number |
| Tracking number of this connection.
|
|
uint8_t | family |
| Family of this connection.
|
|
|
static void | CheckCallbacks () |
| Check whether we need to call the callback, i.e. More...
|
|
static void | KillAll () |
| Kill all connection attempts.
|
|
template<class T , typename... Args> |
static std::shared_ptr< TCPConnecter > | Create (Args &&... args) |
| Create the connecter, and initiate connecting by putting it in the collection of TCP connections to make. More...
|
|
Connecter used after STUN exchange to connect from both sides to each other.
Definition at line 63 of file network_coordinator.cpp.
◆ NetworkReuseStunConnecter()
NetworkReuseStunConnecter::NetworkReuseStunConnecter |
( |
const std::string & |
hostname, |
|
|
uint16_t |
port, |
|
|
const NetworkAddress & |
bind_address, |
|
|
std::string |
token, |
|
|
uint8_t |
tracking_number, |
|
|
uint8_t |
family |
|
) |
| |
|
inline |
Try to establish a STUN-based connection.
- Parameters
-
hostname | The hostname of the peer. |
port | The port of the peer. |
bind_address | The local bind address used for this connection. |
token | The connection token. |
tracking_number | The tracking number of the connection. |
family | The family this connection is using. |
Definition at line 79 of file network_coordinator.cpp.
The documentation for this class was generated from the following file: