Connect to a game server by IP:port.
More...
|
|
std::string | token |
| | Token of this connection.
|
| |
|
uint8_t | tracking_number |
| | Tracking number 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...
|
| |
Connect to a game server by IP:port.
Definition at line 35 of file network_coordinator.cpp.
◆ NetworkDirectConnecter()
| NetworkDirectConnecter::NetworkDirectConnecter |
( |
const std::string & |
hostname, |
|
|
uint16_t |
port, |
|
|
const std::string & |
token, |
|
|
uint8_t |
tracking_number |
|
) |
| |
|
inline |
Try to establish a direct (hostname:port based) connection.
- Parameters
-
| hostname | The hostname of the server. |
| port | The port of the server. |
| token | The token as given by the Game Coordinator to track this connection attempt. |
| tracking_number | The tracking number as given by the Game Coordinator to track this connection attempt. |
Definition at line 48 of file network_coordinator.cpp.
The documentation for this class was generated from the following file: