mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-23 08:38:58 +00:00
implement more plumbing between client and server network
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user