package tcpip

  1. Overview
  2. Docs

Parameters

Signature

type console = Console.t
type netif = Ipaddr.V4.t list
type mode = unit
type (!'a, !'b, !'c) config = ('a, 'b, 'c) V1_LWT.stackv4_config
type ipv4addr = Ipaddr.V4.t
type buffer = Cstruct.t
type udpv4 = Udpv4_socket.t
type tcpv4 = Tcpv4_socket.t
type error = [
  1. | `Unknown of string
]
type 'a io = 'a Lwt.t
type 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 udpv4 : t -> udpv4
val tcpv4 : t -> tcpv4
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.