mirror of
https://github.com/SWG-Source/stationapi.git
synced 2026-08-01 01:16:06 -04:00
Split into library and application code to prepare for future stationapi based apps
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#include "StationChatApp.hpp"
|
||||
|
||||
#include "easylogging++.h"
|
||||
|
||||
StationChatApp::StationChatApp(StationChatConfig config)
|
||||
: config_{std::move(config)} {
|
||||
registrarNode_ = std::make_unique<RegistrarNode>(config_);
|
||||
LOG(INFO) << "Registrar listening @" << config_.registrarAddress << ":" << config_.registrarPort;
|
||||
|
||||
gatewayNode_ = std::make_unique<GatewayNode>(config_);
|
||||
LOG(INFO) << "Gateway listening @" << config_.gatewayAddress << ":" << config_.gatewayPort;
|
||||
}
|
||||
|
||||
void StationChatApp::Tick() {
|
||||
registrarNode_->Tick();
|
||||
gatewayNode_->Tick();
|
||||
}
|
||||
Reference in New Issue
Block a user