package tcpip

  1. Overview
  2. Docs
type id = string
type ip = unit
type t = unit
type +'a io = 'a Lwt.t
type error = [
  1. | `Unimplemented
  2. | `Unknown of string
]
type ipaddr = Ipaddr.V6.t
type buffer = Cstruct.t
type callback = src:ipaddr -> dst:ipaddr -> buffer -> unit io
val mtu : 'a -> int
val id : 'a -> unit
val disconnect : unit -> unit Lwt.t
val connect : unit -> unit Lwt.t
val input : 'a -> tcp:'b -> udp:'c -> default:'d -> 'e -> unit Lwt.t
val allocate_frame : 'a -> dst:'b -> proto:'c -> 'd
val write : 'a -> 'b -> 'c -> 'd Lwt.t
val writev : 'a -> 'b -> 'c -> 'd Lwt.t
val get_ip : 'a -> Ipaddr.V6.t
val set_ip : 'a -> 'b -> 'c Lwt.t
val get_ip_gateways : 'a -> 'b
val set_ip_gateways : 'a -> 'b -> 'c Lwt.t
val checksum : 'a -> 'b -> 'c
val src : 'a -> dst:'b -> 'c