[#boost-urls-default_port] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::default_port :relfileprefix: ../../ :mrdocs: Return the default port for a known scheme == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/scheme.hpp#L174[boost/url/scheme.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::uint16_t default_port(xref:boost/urls/scheme.adoc[scheme] s) noexcept; ---- == Description This function returns the default port for the known schemes. If the value does not represent a known scheme or the scheme does not represent a protocol, the function returns zero. The following ports are returned by the function: * scheme::ftp = 21 * scheme::http , scheme::ws = 80 * scheme::https , scheme::wss = 443 == Return Value An integer with the default port number == Parameters |=== | Name | Description | *s* | The known scheme constant |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#