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 5f4d9fe commit 287940dCopy full SHA for 287940d
lib_eio_windows/net.ml
@@ -57,6 +57,12 @@ let datagram_socket sock = object
57
let recv, addr = Err.run (Low_level.recv_msg sock) b in
58
Cstruct.blit_from_bytes b 0 buf 0 recv;
59
Eio_unix.Net.sockaddr_of_unix_datagram addr, recv
60
+
61
+ method getsockopt : type a. a Eio.Net.Sockopt.t -> a = fun opt ->
62
+ Eio_unix.Net.Sockopt.get fd opt
63
64
+ method setsockopt : type a. a Eio.Net.Sockopt.t -> a -> unit = fun opt v ->
65
+ Eio_unix.Net.Sockopt.set fd opt v
66
end
67
68
(* https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml *)
0 commit comments