Skip to content

Commit 287940d

Browse files
committed
more windows
1 parent 5f4d9fe commit 287940d

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
@@ -57,6 +57,12 @@ let datagram_socket sock = object
5757
let recv, addr = Err.run (Low_level.recv_msg sock) b in
5858
Cstruct.blit_from_bytes b 0 buf 0 recv;
5959
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
6066
end
6167

6268
(* https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml *)

0 commit comments

Comments
 (0)