Gets the port component of the URL.
unsigned short port() const;
Return Value
The port number of the URL.
Remarks
If the URL string did not specify a port, and the protocol is one of
http
, https
or ftp
, an appropriate
default port number is returned.