#include "rpc_server.hpp" #include "socket.hpp" #include #include auto slige_rpc::RpcServer::bind( uint16_t port) -> std::variant { std::variant socket_result = slige_socket::Socket::bind(port); if (std::holds_alternative(socket_result)) { return std::get(socket_result); } return RpcServer(std::get(socket_result)); }