Fields

sa: os.sockaddr.in,

Functions

fn format(self: Ip4Address, comptime fmt: []const u8, options: std.fmt.FormatOptions, out_stream: anytype) !void

No documentation provided.

fn getOsSockLen(self: Ip4Address) os.socklen_t

No documentation provided.

fn getPort(self: Ip4Address) u16

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

fn init(addr: [4]u8, port: u16) Ip4Address

No documentation provided.

fn parse(buf: []const u8, port: u16) !Ip4Address

No documentation provided.

fn resolveIp(name: []const u8, port: u16) !Ip4Address

No documentation provided.

fn setPort(self: *Ip4Address, port: u16) void

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