Skip to content

Commit 5f4d9fe

Browse files
committed
more windows
1 parent 65fa53b commit 5f4d9fe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib_eio_windows/net.ml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ let listening_socket ~hook fd = object
3131
method! probe : type a. a Eio.Generic.ty -> a option = function
3232
| Eio_unix.Resource.FD -> Some fd
3333
| _ -> 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
3440
end
3541

3642
(* todo: would be nice to avoid copying between bytes and cstructs here *)

0 commit comments

Comments
 (0)