package tcpip

  1. Overview
  2. Docs

Parameters

module Time : V1_LWT.TIME
module Random : V1.RANDOM
module Ethif : sig ... end
module Ipv4 : sig ... end
module Udpv4 : sig ... end
module Tcpv4 : sig ... end

Signature

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.t
type tcpv4 = Tcpv4.t
type ipv4
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
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.