Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

has_unix_sockets

Windows 10 added support for unix sockets in build 17063, redstone 4 is the first release to support them.

net.has_unix_sockets
pub const has_unix_sockets = switch (native_os)

File

lib/std/Io/net.zig:49

Code

pub const has_unix_sockets = switch (native_os) {
    .windows => builtin.os.version_range.windows.isAtLeast(.win10_rs4) orelse false,
    .wasi => false,
    else => true,
}