Created
October 4, 2018 20:16
-
-
Save ChristianHohlfeld/1da9cad8a09c79cd4cbaa2c349490b5c to your computer and use it in GitHub Desktop.
Server init
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double sTime = 100.0f; | |
void HelloWorld::initServer() { | |
GameConnectionConfig config; | |
yojimbo::Address* serverAddress = new Address(localProperties.GetProperty("SERVER_IP_ADDRESS").c_str(), 4000); | |
server = new GameServer(GetDefaultAllocator(), serverAddress, adapter, config, sTime); | |
server->Start(); | |
char addressString[256]; | |
server->GetAddress().ToString(addressString, sizeof(addressString)); | |
log("server address is %s\n", addressString); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment