HTTPServer::BindAndStartListening

Bind to a new address:port, start listening and add the listen socket to m_listen.

Synopsis

Declared in <httpserver.h>

util::Expected<void, std::string>
BindAndStartListening(CService const& to);

Return Value

{} or the reason for failure.

Parameters

NameDescription
to [in]Where to bind.