Results for “Std.Net.listen”
6 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.Net.listen
Str -> Int -> Result[Std.Net.Listener, Std.Net.NetError]Wait for connections on a port.
- Std.Net.accept
&Std.Net.Listener -> Result[Std.Net.Connection, Std.Net.NetError]Wait for the next connection.
- Std.Net.closeListener
&Std.Net.Listener -> Result[(), Std.Net.NetError]Stop listening.
- Std.Net.listenLocal
Int -> Result[Std.Net.Listener, Std.Net.NetError]Wait for connections reachable only from this machine.
- Std.Net.portOf
&Std.Net.Listener -> Result[Int, Std.Net.NetError]Which port a listener is actually on.
- Std.Net.serve
&Std.Net.Listener -> Int -> fn(Std.Net.Connection) -> Bool -> Result[Int, Std.Net.NetError]Wait for connections, hand each to an action, and close it however the
