-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interoperation with mirage/ocaml-ipaddr #462
Comments
And similar with the reverse:
|
If |
Do you mean something like? In ocaml-ipaddr's
Which would then be used with:
|
Yes, exactly. |
Great! I've created a PR here: mirage/ocaml-ipaddr#117 |
Relevant Ipaddr release now heading into opam-repository; ocaml/opam-repository#23602 |
Up to you. Mentioning |
I've created a PR documenting this here: #492 |
A number of libraries use https://github.com/mirage/ocaml-ipaddr. Using EIO with these libraries requires translating an
Eio.Net.Ipaddr
to anIpaddr
[0]:I imagine adding mirage/ocaml-ipaddr as a dependency of eio is not desirable (and vice versa) but perhaps this is worth documenting?
Also, with mirage/ocaml-ipaddr#115 changing the internal representation of
Ipaddr.V6.t
to aBytes
(Ipaddr.V4.t
is aint32
) I imagine there is a more efficient and/or elegant way to do this.[0] https://github.com/RyanGibb/aeon/blob/4adbb7be231c3cc6a1c22cc3f3dae71e89f9e06a/src/server.ml#L4-L15 (thanks to @patricoferris for this)
The text was updated successfully, but these errors were encountered: