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 udpv4 = Udpv4_unix.t
type tcpv4 = Tcpv4_unix.Flow.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
module IPV4 : sig ... end
val udpv4 : t -> udpv4
val tcpv4 : t -> tcpv4
val ipv4 : t -> ipv4
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.