pub fn accept(s: *Server, io: Io) AcceptError!Stream
Blocks until a client connects to the server.
s: *Server
io: Io
1472 1473 1474
pub fn accept(s: *Server, io: Io) AcceptError!Stream { return .{ .socket = try io.vtable.netAccept(io.userdata, s.socket.handle, s.options) }; }
Blocks until a client connects to the server.