std.Io.net.HostName
The entries of std.Io.net.HostName in the Zig reference. This page has 28 cards.
pub fn connect(host_name: HostName, io: Io, port: u16, options: IpAddress.ConnectOptions) ConnectError!Stream
- Kind
- function
- Module
std.Io.net.HostName
- Kind
- type
- Module
std.Io.net.HostName
pub fn connectMany(host_name: HostName, io: Io, port: u16, results: *Io.Queue(IpAddress.ConnectError!Stream), options: IpAddress.ConnectOptions) LookupError!void
Asynchronously establishes a connection to all IP addresses associated with a host name, adding them to a results queue upon completion. `error.Canceled` will never be added to the queue, but other errors may be.
- Kind
- function
- Module
std.Io.net.HostName
- Kind
- enum
- Module
std.Io.net.HostName
- Kind
- struct
- Module
std.Io.net.HostName
- Kind
- struct
- Module
std.Io.net.HostName
- Kind
- error set
- Module
std.Io.net.HostName
pub fn init(r: []const u8) Error!DnsResponse
- Kind
- function
- Module
std.Io.net.HostName
pub fn next(dr: *DnsResponse) Error!?Answer
- Kind
- function
- Module
std.Io.net.HostName
pub fn eql(a: HostName, b: HostName) bool
Domain names are case-insensitive (RFC 5890, Section 2.3.2.4).
- Kind
- function
- Module
std.Io.net.HostName
pub fn expand(noalias packet: []const u8, start_i: usize, noalias dest_buffer: []u8) ExpandError!struct
Decompresses a DNS name.
- Kind
- function
- Module
std.Io.net.HostName
- Kind
- error set
- Module
std.Io.net.HostName
pub fn fromUri(uri: std.Uri, buffer: *[HostName.max_len]u8) FromUriError!HostName
Returned `HostName.bytes` may point into `buffer` or `uri.host`.
- Kind
- function
- Module
std.Io.net.HostName
- Kind
- error set
- Module
std.Io.net.HostName
pub fn init(bytes: []const u8) ValidateError!HostName
- Kind
- function
- Module
std.Io.net.HostName
pub fn lookup(host_name: HostName, io: Io, resolved: *Io.Queue(LookupResult), options: LookupOptions) LookupError!void
Adds any number of `LookupResult.address` into `resolved`, and exactly one `LookupResult.canonical_name`.
- Kind
- function
- Module
std.Io.net.HostName
- Kind
- error set
- Module
std.Io.net.HostName
- Kind
- struct
- Module
std.Io.net.HostName
- Kind
- union
- Module
std.Io.net.HostName
The maximum number of bytes needed to store the text representation of a max length host name, where labels are separated by dots, including the trailing dot and the zero-length root label.
- Kind
- constant
- Module
std.Io.net.HostName
- Kind
- struct
- Module
std.Io.net.HostName
pub fn init(io: Io) !ResolvConf
Returns `error.StreamTooLong` if a line is longer than 512 bytes.
- Kind
- function
- Module
std.Io.net.HostName
According to resolv.conf(5) there is a maximum of 3 nameservers in this file.
- Kind
- constant
- Module
std.Io.net.HostName
pub fn nameservers(rc: *const ResolvConf) []const IpAddress
- Kind
- function
- Module
std.Io.net.HostName
pub fn parse(rc: *ResolvConf, io: Io, reader: *Io.Reader) !void
- Kind
- function
- Module
std.Io.net.HostName
pub fn sameParentDomain(parent_host: HostName, child_host: HostName) bool
- Kind
- function
- Module
std.Io.net.HostName
pub fn validate(bytes: []const u8) ValidateError!void
Validates a hostname according to [RFC 1123](https://www.rfc-editor.org/rfc/rfc1123).
- Kind
- function
- Module
std.Io.net.HostName
- Kind
- error set
- Module
std.Io.net.HostName