Changeset View
Changeset View
Standalone View
Standalone View
source/network/NetServer.cpp
/* Copyright (C) 2019 Wildfire Games. | /* Copyright (C) 2020 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 203 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
return true; | return true; | ||||
} | } | ||||
#if CONFIG2_MINIUPNPC | #if CONFIG2_MINIUPNPC | ||||
void CNetServerWorker::SetupUPnP() | void CNetServerWorker::SetupUPnP() | ||||
{ | { | ||||
debug_SetThreadName("UPnP"); | |||||
// Values we want to set. | // Values we want to set. | ||||
char psPort[6]; | char psPort[6]; | ||||
sprintf_s(psPort, ARRAY_SIZE(psPort), "%d", PS_DEFAULT_PORT); | sprintf_s(psPort, ARRAY_SIZE(psPort), "%d", PS_DEFAULT_PORT); | ||||
const char* leaseDuration = "0"; // Indefinite/permanent lease duration. | const char* leaseDuration = "0"; // Indefinite/permanent lease duration. | ||||
const char* description = "0AD Multiplayer"; | const char* description = "0AD Multiplayer"; | ||||
const char* protocall = "UDP"; | const char* protocall = "UDP"; | ||||
char internalIPAddress[64]; | char internalIPAddress[64]; | ||||
char externalIPAddress[40]; | char externalIPAddress[40]; | ||||
▲ Show 20 Lines • Show All 1,408 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator