Function getPort [src]

Returns the port in native endian. Asserts that the address is ip4 or ip6.

Prototype

pub fn getPort(self: Ip4Address) u16

Parameters

self: Ip4Address

Source

pub fn getPort(self: Ip4Address) u16 { return mem.bigToNative(u16, self.sa.port); }