package tcpip

  1. Overview
  2. Docs

Parameters

module Time : Mirage_time.S
module Random : Mirage_random.S
module Netif : Mirage_net.S
module Ethernet : Mirage_protocols.ETHERNET
module Arpv4 : Mirage_protocols.ARP
module Ipv4 : Mirage_protocols.IP with type ipaddr = Ipaddr.V4.t
module Icmpv4 : Mirage_protocols.ICMP with type ipaddr = Ipaddr.V4.t
module Udpv4 : UDPV4_DIRECT
module Tcpv4 : TCPV4_DIRECT

Signature

include Mirage_stack.V4 with module IPV4 = Ipv4 and module TCPV4 = Tcpv4 and module UDPV4 = Udpv4
type t
val disconnect : t -> unit Lwt.t
module UDPV4 : sig ... end
module TCPV4 : sig ... end
module IPV4 : sig ... end
val udpv4 : t -> UDPV4.t
val tcpv4 : t -> TCPV4.t
val ipv4 : t -> IPV4.t
val listen_udpv4 : t -> port:int -> UDPV4.callback -> unit
  • deprecated use UDPV4.listen instead (since mirage-protocols 6.0.0).
val listen_tcpv4 : ?keepalive:Mirage_protocols.Keepalive.t -> t -> port:int -> (TCPV4.flow -> unit Lwt.t) -> unit
  • deprecated use TCPV4.listen instead (since mirage-protocols 6.0.0).
val listen : t -> unit Lwt.t
val connect : Netif.t -> Ethernet.t -> Arpv4.t -> Ipv4.t -> Icmpv4.t -> Udpv4.t -> Tcpv4.t -> t Lwt.t

connect assembles the arguments into a network stack, then calls `listen` on the assembled stack before returning it to the caller. The initial `listen` functions to ensure that the lower-level layers (e.g. ARP) are functioning, so that if the user wishes to establish outbound connections, they will be able to do so.

OCaml

Innovation. Community. Security.