26 lines
515 B
C++
26 lines
515 B
C++
#pragma once
|
|
|
|
#include <nano/lib/config.hpp>
|
|
#include <nano/lib/errors.hpp>
|
|
|
|
#include <memory>
|
|
|
|
namespace nano
|
|
{
|
|
class tomlconfig;
|
|
namespace websocket
|
|
{
|
|
/** websocket configuration */
|
|
class config final
|
|
{
|
|
public:
|
|
config (nano::network_constants & network_constants);
|
|
nano::error deserialize_toml (nano::tomlconfig & toml_a);
|
|
nano::error serialize_toml (nano::tomlconfig & toml) const;
|
|
nano::network_constants & network_constants;
|
|
bool enabled{ false };
|
|
uint16_t port;
|
|
std::string address;
|
|
};
|
|
}
|
|
}
|