Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/network/NetServer.cpp
/* Copyright (C) 2023 Wildfire Games. | /* Copyright (C) 2024 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 All 33 Lines | |||||
#if CONFIG2_MINIUPNPC | #if CONFIG2_MINIUPNPC | ||||
#include <miniupnpc/miniwget.h> | #include <miniupnpc/miniwget.h> | ||||
#include <miniupnpc/miniupnpc.h> | #include <miniupnpc/miniupnpc.h> | ||||
#include <miniupnpc/upnpcommands.h> | #include <miniupnpc/upnpcommands.h> | ||||
#include <miniupnpc/upnperrors.h> | #include <miniupnpc/upnperrors.h> | ||||
#endif | #endif | ||||
#include <set> | |||||
#include <string> | #include <string> | ||||
/** | /** | ||||
* Number of peers to allocate for the enet host. | * Number of peers to allocate for the enet host. | ||||
* Limited by ENET_PROTOCOL_MAXIMUM_PEER_ID (4096). | * Limited by ENET_PROTOCOL_MAXIMUM_PEER_ID (4096). | ||||
* | * | ||||
* At most 8 players, 32 observers and 1 temporary connection to send the "server full" disconnect-reason. | * At most 8 players, 32 observers and 1 temporary connection to send the "server full" disconnect-reason. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 1,691 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator