package tcpip

  1. Overview
  2. Docs
type console = Console.t
type netif = Netif.t
type (!'a, !'b, !'c) config = ('a, 'b, 'c) V1_LWT.stackv4_config
type ipv4addr = Ipaddr.V4.t
type buffer = Cstruct.t
type error = [
  1. | `Unknown of string
]
type 'a io = 'a Lwt.t
type id = (console, netif, mode) config
val id : t -> id
val connect : id -> [ `Error of error | `Ok of t ] io
val disconnect : t -> unit io
module UDPV4 : sig ... end
module TCPV4 : sig ... end
val listen_udpv4 : t -> port:int -> UDPV4.callback -> unit
val listen_tcpv4 : t -> port:int -> TCPV4.callback -> unit
val listen : t -> unit io
OCaml

Innovation. Community. Security.