[#HTTPServer-BindAndStartListening] = xref:HTTPServer.adoc[HTTPServer]::BindAndStartListening :relfileprefix: ../ :mrdocs: Bind to a new address:port, start listening and add the listen socket to `m_listen`. == Synopsis Declared in `<httpserver.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:util/Expected-0b.adoc[util::Expected<void, std::string>] BindAndStartListening(xref:CService.adoc[CService] const& to); ---- == Return Value {} or the reason for failure. == Parameters [cols="1,4"] |=== | Name| Description | *to* [in] | Where to bind. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#