We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65fa53b commit 5f4d9feCopy full SHA for 5f4d9fe
lib_eio_windows/net.ml
@@ -31,6 +31,12 @@ let listening_socket ~hook fd = object
31
method! probe : type a. a Eio.Generic.ty -> a option = function
32
| Eio_unix.Resource.FD -> Some fd
33
| _ -> None
34
+
35
+ method getsockopt : type a. a Eio.Net.Sockopt.t -> a = fun opt ->
36
+ Eio_unix.Net.Sockopt.get fd opt
37
38
+ method setsockopt : type a. a Eio.Net.Sockopt.t -> a -> unit = fun opt v ->
39
+ Eio_unix.Net.Sockopt.set fd opt v
40
end
41
42
(* todo: would be nice to avoid copying between bytes and cstructs here *)
0 commit comments