package mirage-net-socket

  1. Overview
  2. Docs
type bytes = string
type ethernet_mac
val ethernet_mac_of_bytes : bytes -> ethernet_mac
val ethernet_mac_of_string : string -> ethernet_mac option
val ethernet_mac_to_bytes : ethernet_mac -> bytes
val ethernet_mac_to_string : ethernet_mac -> string
val ethernet_mac_broadcast : ethernet_mac
type ipv4_addr = Unix.inet_addr
val ipv4_addr_of_tuple : (int32 * int32 * int32 * int32) -> ipv4_addr
val ipv4_addr_of_string : string -> ipv4_addr option
val ipv4_addr_to_string : ipv4_addr -> string
val ipv4_blank : ipv4_addr
val ipv4_broadcast : ipv4_addr
val ipv4_localhost : ipv4_addr
type ipv4_src = ipv4_addr option * int
type ipv4_dst = ipv4_addr * int
type arp = {
  1. op : [ `Reply | `Request | `Unknown of int ];
  2. sha : ethernet_mac;
  3. spa : ipv4_addr;
  4. tha : ethernet_mac;
  5. tpa : ipv4_addr;
}
type peer_uid = int
exception Closed
module type FLOW = sig ... end
module type DATAGRAM = sig ... end
module type CHANNEL = sig ... end
OCaml

Innovation. Community. Security.