t8-mod/source/proxy-dll/demonware/servers/base_server.cpp
2023-11-10 13:52:20 -08:00

23 lines
435 B
C++

#include <std_include.hpp>
#include "base_server.hpp"
#include <utilities/cryptography.hpp>
namespace demonware
{
base_server::base_server(std::string name): name_(std::move(name))
{
this->address_ = utilities::cryptography::jenkins_one_at_a_time::compute(this->name_);
}
const std::string& base_server::get_name() const
{
return this->name_;
}
uint32_t base_server::get_address() const
{
return this->address_;
}
}