Skip to content

Commit 52c2ac8

Browse files
committed
sockopt: fix windows build
1 parent fb941d6 commit 52c2ac8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib_eio_windows/flow.ml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ let of_fd fd = object (_ : <Eio_unix.Net.stream_socket; Eio.File.rw>)
8181
method probe : type a. a Eio.Generic.ty -> a option = function
8282
| Eio_unix.Resource.FD -> Some fd
8383
| _ -> None
84+
85+
method getsockopt : type a. a Eio.Net.Sockopt.t -> a = fun opt ->
86+
Eio.Net.Sockopt.get fd opt
87+
88+
method setsockopt : type a. a Eio.Net.Sockopt.t -> a -> unit = fun opt v ->
89+
Eio.Net.Sockopt.set fd opt v
8490
end
8591

8692
let secure_random = object

0 commit comments

Comments
 (0)