Connect to the STUN server.
More...
|
static void | CheckCallbacks () |
| Check whether we need to call the callback, i.e.
|
|
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.
|
|
Connect to the STUN server.
Definition at line 19 of file network_stun.cpp.
◆ NetworkStunConnecter()
NetworkStunConnecter::NetworkStunConnecter |
( |
ClientNetworkStunSocketHandler * |
stun_handler, |
|
|
const std::string & |
connection_string, |
|
|
const std::string & |
token, |
|
|
uint8_t |
family |
|
) |
| |
|
inline |
Initiate the connecting.
- Parameters
-
stun_handler | The handler for this request. |
connection_string | The address of the server. |
Definition at line 31 of file network_stun.cpp.
◆ OnConnect()
void NetworkStunConnecter::OnConnect |
( |
SOCKET |
s | ) |
|
|
inlineoverridevirtual |
◆ OnFailure()
void NetworkStunConnecter::OnFailure |
( |
| ) |
|
|
inlineoverridevirtual |
◆ family
uint8_t NetworkStunConnecter::family |
|
private |
◆ stun_handler
◆ token
std::string NetworkStunConnecter::token |
|
private |
The documentation for this class was generated from the following file: