Fields

kernel_backlog: u31,

Copied from Options on init.

reuse_address: bool,
reuse_port: bool,
listen_address: Address,

undefined until listen returns successfully.

sockfd: ?os.socket_t,

Functions

fn accept(self: *StreamServer) AcceptError!Connection

If this function succeeds, the returned Connection is a caller-managed resourc…

If this function succeeds, the returned Connection is a caller-managed resource.

fn close(self: *StreamServer) void

Stop listening. It is still necessary to call deinit after stopping listening….

Stop listening. It is still necessary to call deinit after stopping listening. Calling deinit will automatically call close. It is safe to call close when not listening.

fn deinit(self: *StreamServer) void

Release all resources. The StreamServer memory becomes undefined.

fn init(options: Options) StreamServer

After this call succeeds, resources have been acquired and must be released wit…

After this call succeeds, resources have been acquired and must be released with deinit.

fn listen(self: *StreamServer, address: Address) !void

No documentation provided.

Values