Address.toPortString

string toPortString() const

Attempts to retrieve the numeric port number as a string.

Throws

AddressException on failure, or SocketFeatureException

if port number retrieval for this address family is not available on the current system.