mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 17:49:01 +00:00
NetPlayServer: handle port forwarding in constructor
This commit is contained in:
parent
4b50e77a26
commit
b5d070b0cf
5 changed files with 11 additions and 31 deletions
|
@ -28,7 +28,7 @@ public:
|
|||
void ThreadFunc();
|
||||
void SendAsyncToClients(sf::Packet&& packet);
|
||||
|
||||
NetPlayServer(const u16 port, const NetTraversalConfig& traversal_config);
|
||||
NetPlayServer(u16 port, bool forward_port, const NetTraversalConfig& traversal_config);
|
||||
~NetPlayServer();
|
||||
|
||||
bool ChangeGame(const std::string& game);
|
||||
|
@ -58,10 +58,6 @@ public:
|
|||
|
||||
bool is_connected = false;
|
||||
|
||||
#ifdef USE_UPNP
|
||||
void TryPortmapping(u16 port);
|
||||
#endif
|
||||
|
||||
private:
|
||||
class Client
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue