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 fb941d6 commit 52c2ac8Copy full SHA for 52c2ac8
lib_eio_windows/flow.ml
@@ -81,6 +81,12 @@ let of_fd fd = object (_ : <Eio_unix.Net.stream_socket; Eio.File.rw>)
81
method probe : type a. a Eio.Generic.ty -> a option = function
82
| Eio_unix.Resource.FD -> Some fd
83
| _ -> 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
90
end
91
92
let secure_random = object
0 commit comments