Wayland-OCaml/protocol/lib/socket.mli

12 lines
297 B
OCaml

type socket
type address
val create : unit -> socket IO.t
val address : unit -> address IO.t
val bind : socket -> address -> unit IO.t
val connect : socket -> address -> unit IO.t
val listen : socket -> int -> unit IO.t
val accept : socket -> socket IO.t
val close : socket -> unit IO.t