luv icon indicating copy to clipboard operation
luv copied to clipboard

Restore (or add) Luv/Unix sockaddr conversions

Open aantron opened this issue 4 years ago • 2 comments

...also needed for ocsigen/lwt#813.

aantron avatar Jan 14 '21 19:01 aantron

Hey @aantron -- is there any way I can help with this? Not sure if you remember but I'm interested in this as well for using luv with ocurl and it looks like the requisite functions (uv_pipe & uv_socketpair) are in now.

Let me know if there is anything I can do!

cc @bryphe

zbaylin avatar May 02 '21 00:05 zbaylin

I just merged in a branch that restores the Luv/Unix fd conversions in a module Luv.Unix. You should be able to add sockaddr conversions in that module as well, probably in a new submodule module Sockaddr : (* ... *), parallel to Os_fd. It's probably best to do the conversions at the C level, using the functions in caml/socketaddr.h. See luv_unix.c.

I can also add them myself, but a bit later, as I am currently loaded with some other work :/

aantron avatar May 02 '21 08:05 aantron