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
= 21scheme::http
, scheme::ws
= 80scheme::https
, scheme::wss
= 443Name | Description |
---|---|
s | The known scheme constant |