Changeset View
Changeset View
Standalone View
Standalone View
source/network/NetClient.h
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Set up a connection to the remote networked server. | * Set up a connection to the remote networked server. | ||||
* Must call SetupServerData first. | * Must call SetupServerData first. | ||||
* @return true on success, false on connection failure | * @return true on success, false on connection failure | ||||
*/ | */ | ||||
bool SetupConnection(ENetHost* enetClient); | bool SetupConnection(ENetHost* enetClient); | ||||
/** | /** | ||||
* Send a request for server connection data via the lobby. | |||||
*/ | |||||
bool SetupConnectionViaLobby(const CStr& hostJID, bool localIP); | |||||
/** | |||||
* Connect to the remote networked server using lobby. | * Connect to the remote networked server using lobby. | ||||
* Push netstatus messages on failure. | * Push netstatus messages on failure. | ||||
* @return true on success, false on connection failure | * @return true on success, false on connection failure | ||||
*/ | */ | ||||
bool TryToConnect(const CStr& hostJID); | bool TryToConnect(const CStr& hostJID); | ||||
/** | /** | ||||
* Destroy the connection to the server. | * Destroy the connection to the server. | ||||
▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator