package eio

  1. Overview
  2. Docs

Convert between Eio.Net.Ipaddr and Unix.inet_addr.

Internally, these are actually the same type, so these are just casts.

val to_unix : [< `V4 | `V6 ] Eio.Net.Ipaddr.t -> Unix.inet_addr
val of_unix : Unix.inet_addr -> Eio.Net.Ipaddr.v4v6
OCaml

Innovation. Community. Security.