aboutsummaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-07-11 21:42:56 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-07-19 04:12:40 -0300
commit51817f6e59e420536901e3225091894ea6ad1b25 (patch)
treefba868b13fcc9957cec4ffefcc8f03ad3be3d56a /src/core/core.cpp
parent19c6bf72db03c301457866047aeb4637e26317d8 (diff)
core/network: Add network abstraction
This commit adds a network abstraction designed to implement bsd:s but at the same time work as a generic abstraction to implement any networking code we have to use from core. This is implemented on top of BSD sockets on Unix systems and winsock on Windows. The code is designed around winsocks having compatibility definitions to support both BSD and Windows sockets.
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 69a1aa0a5e..e598c0e2b6 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -43,6 +43,7 @@
#include "core/loader/loader.h"
#include "core/memory.h"
#include "core/memory/cheat_engine.h"
+#include "core/network/network.h"
#include "core/perf_stats.h"
#include "core/reporter.h"
#include "core/settings.h"
@@ -394,6 +395,9 @@ struct System::Impl {
/// Telemetry session for this emulation session
std::unique_ptr<Core::TelemetrySession> telemetry_session;
+ /// Network instance
+ Network::NetworkInstance network_instance;
+
ResultStatus status = ResultStatus::Success;
std::string status_details = "";