[#SplitHostPort] = SplitHostPort :mrdocs: Splits socket address string into host string and port value. Validates port value. == Synopsis Declared in `<util/strencodings.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool SplitHostPort( std::string_view in, uint16_t& portOut, std::string& hostOut); ---- == Return Value true if port‐portion is absent or within its allowed range, otherwise false == Parameters [cols="1,4"] |=== | Name| Description | *in* [in] | The socket address string to split. | *portOut* [out] | Port‐portion of the input, if found and parsable. | *hostOut* [out] | Host‐portion of the input, if found. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#