package atacama

  1. Overview
  2. Docs
val listen : ?opts:Riot.Net.Socket.listen_opts -> port:int -> unit -> (Riot.Net.Socket.listen_socket, [> `System_limit | `Unix_error of Unix.error ]) Stdlib.result
val connect : Riot.Net.Addr.stream_addr -> (Riot.Net.Socket.stream_socket, [> `Closed | `Unix_error of Unix.error ]) Stdlib.result
val accept : ?timeout:Riot.Net.Socket.timeout -> Riot.Net.Socket.listen_socket -> (Riot.Net.Socket.stream_socket * Riot.Net.Addr.stream_addr, [> `Closed | `System_limit | `Timeout | `Unix_error of Unix.error ]) Stdlib.result
val close : 'a Riot.Net.Socket.socket -> unit
val controlling_process : 'a Riot.Net.Socket.socket -> new_owner:Riot.Pid.t -> (unit, [> `Closed | `Not_owner | `Unix_error of Unix.error ]) Stdlib.result
val receive : ?timeout:Riot.Net.Socket.timeout -> len:int -> Riot.Net.Socket.stream_socket -> (Bigstringaf.t, [> `Closed | `Timeout | `Unix_error of Unix.error ]) Stdlib.result
val send : Bigstringaf.t -> Riot.Net.Socket.stream_socket -> (int, [> `Closed | `Unix_error of Unix.error ]) Stdlib.result
val handshake : Riot.Net.Socket.stream_socket -> (unit, [> `Closed | `Unix_error of Unix.error ]) Stdlib.result
OCaml

Innovation. Community. Security.