summaryrefslogtreecommitdiff
path: root/Source/Core/Common/TraversalClient.cpp
diff options
context:
space:
mode:
authorLioncash <mai.iam2048@gmail.com>2023-04-24 08:15:55 -0400
committerLioncash <mai.iam2048@gmail.com>2023-04-24 08:28:25 -0400
commit27f38c6c8f20d20f5d844e3d8b47a2591e92d462 (patch)
tree4092cd534b25ca5b5da2b4b3a5d9cf213821da1f /Source/Core/Common/TraversalClient.cpp
parentffbbd72741aa74d8bc602635ac9fdf9f9d0bb1bd (diff)
Common/TraversalClient: Move interface into Common namespace
Gets the interface out of the global namespace.
Diffstat (limited to 'Source/Core/Common/TraversalClient.cpp')
-rw-r--r--Source/Core/Common/TraversalClient.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/Common/TraversalClient.cpp b/Source/Core/Common/TraversalClient.cpp
index b215e5d269..e384c1cca8 100644
--- a/Source/Core/Common/TraversalClient.cpp
+++ b/Source/Core/Common/TraversalClient.cpp
@@ -12,6 +12,8 @@
#include "Common/Random.h"
#include "Core/NetPlayProto.h"
+namespace Common
+{
TraversalClient::TraversalClient(ENetHost* netHost, const std::string& server, const u16 port)
: m_NetHost(netHost), m_Server(server), m_port(port)
{
@@ -304,7 +306,7 @@ int ENET_CALLBACK TraversalClient::InterceptCallback(ENetHost* host, ENetEvent*
}
std::unique_ptr<TraversalClient> g_TraversalClient;
-Common::ENet::ENetHostPtr g_MainNetHost;
+ENet::ENetHostPtr g_MainNetHost;
// The settings at the previous TraversalClient reset - notably, we
// need to know not just what port it's on, but whether it was
@@ -348,3 +350,4 @@ void ReleaseTraversalClient()
g_TraversalClient.reset();
g_MainNetHost.reset();
}
+} // namespace Common