Nanoev_picos.Net_servertype client_handler = Unix.sockaddr -> IO_in.t -> IO_out.t -> unitval join : t -> unitWait for server to shutdown
val shutdown : t -> unitAsk the server to stop
val running : t -> boolval max_connections : t -> intval n_active_connections : t -> intval establish :
?backlog:int ->
?max_connections:int ->
?exn_handler:(exn -> Stdlib.Printexc.raw_backtrace -> unit) ->
spawn:((unit -> unit) -> unit Picos.Computation.t) ->
client_handler:client_handler ->
Unix.sockaddr ->
tCreate and start a new server on the given socket address.
val with_ :
?backlog:int ->
?max_connections:int ->
?exn_handler:(exn -> Stdlib.Printexc.raw_backtrace -> unit) ->
spawn:((unit -> unit) -> unit Picos.Computation.t) ->
client_handler:client_handler ->
Unix.sockaddr ->
(t -> 'a) ->
'a