InetAddress.port

Sets the port field (sin_port/sin6_port) of this.addr to p.

  1. ushort port()
  2. ushort port(ushort p)
    struct InetAddress(bool IPv6 = false)
    ushort
    port
    (
    ushort p
    )

Parameters

p ushort

port

Return Value

Type: ushort

p.

Meta