addrinfo.port

Obtains the current port number.

struct addrinfo
ushort
port
()

Return Value

Type: ushort

the current port number.

Errors: EAFNOSUPPORT: The address family is not supported (AF_INET/IPv4 or AF_INET6/IPv6).

In: this.ai_addr must not be null: this instance should have been obtained by getaddrinfo() or manually initialised.

Meta