14struct XmlRpcServerPrivate;
41 XmlRpcServer(
const struct sockaddr* sa, socklen_t sa_len);
68 std::function<std::optional<std::string>(
const std::string&)>
72 std::unique_ptr<XmlRpcServerPrivate> priv{
nullptr};
Abstraction for an XML-RPC server.
XmlRpcServer(XmlRpcServer &&)=delete
XmlRpcServer & operator=(XmlRpcServer &&)=delete
XmlRpcServer(uint16_t listen_port)
Create an XML-RPC server which listens on all interfaces on the given port.
XmlRpcServer & operator=(const XmlRpcServer &)=delete
void register_method_handler(std::string_view name, std::function< std::optional< std::string >(const std::string &)> handler)
Register a method handler.
void stop()
Stop the XML-RPC server.
XmlRpcServer(const XmlRpcServer &)=delete
void start()
Start the XML-RPC server.