dncurrency/nano/node/websocketconfig.hpp
Piotr Wójcik f02cee1da8 Remove tls rpc
2024-06-02 21:58:44 +02:00

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;
};
}
}