5555
5656(* * {2 Creating or importing sockets} *)
5757
58- val import_socket_stream : sw :Switch .t -> close_unix :bool -> Unix .file_descr -> [`Unix_fd | stream_socket_ty ] r
58+ val import_socket_stream : sw :Switch .t -> close_unix :bool -> Unix .file_descr -> [< `Unix_fd | stream_socket_ty ] r
5959(* * [import_socket_stream ~sw ~close_unix fd] is an Eio flow that uses [fd].
6060
6161 It can be cast to e.g. {!source} for a one-way flow.
6262 The socket object will be closed when [sw] finishes.
6363
6464 The [close_unix] and [sw] arguments are passed to {!Fd.of_unix}. *)
6565
66- val import_socket_listening : sw :Switch .t -> close_unix :bool -> Unix .file_descr -> [`Unix_fd | listening_socket_ty ] r
66+ val import_socket_listening : sw :Switch .t -> close_unix :bool -> Unix .file_descr -> [< `Unix_fd | listening_socket_ty ] r
6767(* * [import_socket_listening ~sw ~close_unix fd] is an Eio listening socket that uses [fd].
6868
6969 The socket object will be closed when [sw] finishes.
7070
7171 The [close_unix] and [sw] arguments are passed to {!Fd.of_unix}. *)
7272
73- val import_socket_datagram : sw :Switch .t -> close_unix :bool -> Unix .file_descr -> [`Unix_fd | datagram_socket_ty ] r
73+ val import_socket_datagram : sw :Switch .t -> close_unix :bool -> Unix .file_descr -> [< `Unix_fd | datagram_socket_ty ] r
7474(* * [import_socket_datagram ~sw ~close_unix fd] is an Eio datagram socket that uses [fd].
7575
7676 The socket object will be closed when [sw] finishes.
@@ -82,7 +82,7 @@ val socketpair_stream :
8282 ?domain : Unix .socket_domain ->
8383 ?protocol : int ->
8484 unit ->
85- [`Unix_fd | stream_socket_ty ] r * [`Unix_fd | stream_socket_ty ] r
85+ [< `Unix_fd | stream_socket_ty ] r * [< `Unix_fd | stream_socket_ty ] r
8686(* * [socketpair_stream ~sw ()] returns a connected pair of flows, such that writes to one can be read by the other.
8787
8888 This creates OS-level resources using [socketpair(2)].
@@ -93,7 +93,7 @@ val socketpair_datagram :
9393 ?domain : Unix .socket_domain ->
9494 ?protocol : int ->
9595 unit ->
96- [`Unix_fd | datagram_socket_ty ] r * [`Unix_fd | datagram_socket_ty ] r
96+ [< `Unix_fd | datagram_socket_ty ] r * [< `Unix_fd | datagram_socket_ty ] r
9797(* * [socketpair_datagram ~sw ()] returns a connected pair of flows, such that writes to one can be read by the other.
9898
9999 This creates OS-level resources using [socketpair(2)].
0 commit comments