Skip to content

Commit

Permalink
more windows
Browse files Browse the repository at this point in the history
  • Loading branch information
avsm committed Jul 23, 2023
1 parent 5f4d9fe commit 287940d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib_eio_windows/net.ml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ let datagram_socket sock = object
let recv, addr = Err.run (Low_level.recv_msg sock) b in
Cstruct.blit_from_bytes b 0 buf 0 recv;
Eio_unix.Net.sockaddr_of_unix_datagram addr, recv

method getsockopt : type a. a Eio.Net.Sockopt.t -> a = fun opt ->
Eio_unix.Net.Sockopt.get fd opt

method setsockopt : type a. a Eio.Net.Sockopt.t -> a -> unit = fun opt v ->
Eio_unix.Net.Sockopt.set fd opt v
end

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

0 comments on commit 287940d

Please sign in to comment.