implement more plumbing between client and server network

This commit is contained in:
Lion Kortlepel
2024-03-03 22:24:35 +01:00
parent 342b3c3075
commit 387bce5033
6 changed files with 84 additions and 24 deletions

View File

@@ -3,6 +3,7 @@
#include "Config.h"
#include "Identity.h"
#include "Sync.h"
#include "Version.h"
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/ip/udp.hpp>
#include <boost/thread/scoped_thread.hpp>
@@ -11,6 +12,9 @@
#include <string>
#include <thread>
class ClientNetwork;
class ServerNetwork;
class Launcher {
public:
Launcher();
@@ -31,6 +35,14 @@ public:
Sync<ident::Identity> identity {};
Result<void, std::string> start_server_network(const std::string& host, uint16_t port);
Sync<Version> mod_version {};
Sync<Version> game_version {};
std::unique_ptr<ClientNetwork> client_network {};
std::unique_ptr<ServerNetwork> server_network {};
private:
/// Thread main function for the http(s) proxy thread.
void proxy_main();