AddressIPSocket.port

Obtains the port number most recently passed to bind() or connect() or obtained by accept().

class AddressIPSocket(bool IPv6 = false)
ushort
port
()

Return Value

Type: ushort

the current port number.

Meta