package tcpip

  1. Overview
  2. Docs
type id = string
type ipv4 = unit
type t = unit
type 'a io = 'a Lwt.t
type error = [
  1. | `Unimplemented
  2. | `Unknown of string
]
type ipv4addr = Ipaddr.V4.t
type ethif = unit
type buffer = Cstruct.t
type callback = src:ipv4addr -> dst:ipv4addr -> buffer -> unit io
val id : 'a -> unit
val disconnect : unit -> unit Lwt.t
val connect : unit -> [> `Ok of unit ] Lwt.t
val input : tcp:'a -> udp:'b -> default:'c -> 'd -> 'e -> unit Lwt.t
val allocate_frame : proto:'a -> dest_ip:'b -> 'c -> 'd Lwt.t
val write : 'a -> 'b -> 'c -> 'd Lwt.t
val writev : 'a -> 'b -> 'c -> 'd Lwt.t
val get_ipv4 : 'a -> Ipaddr.V4.t
val set_ipv4 : 'a -> 'b -> 'c Lwt.t
val get_ipv4_netmask : 'a -> Ipaddr.V4.t
val get_ipv4_gateways : 'a -> 'b
val set_ipv4_netmask : 'a -> 'b -> 'c Lwt.t
val set_ipv4_gateways : 'a -> 'b -> 'c Lwt.t
OCaml

Innovation. Community. Security.