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 Ip : Mirage_protocols.IP with type ipaddr = Ipaddr.t
module Icmpv4 : Mirage_protocols.ICMP with type ipaddr = Ipaddr.V4.t
module Udp : UDPV4V6_DIRECT
module Tcp : TCPV4V6_DIRECT

Signature

include Mirage_stack.V4V6 with module IP = Ip and module TCP = Tcp and module UDP = Udp
type t
val disconnect : t -> unit Lwt.t
module UDP : sig ... end
module TCP : sig ... end
module IP : sig ... end
val udp : t -> UDP.t
val tcp : t -> TCP.t
val ip : t -> IP.t
val listen_udp : t -> port:int -> UDP.callback -> unit
  • deprecated use UDP.listen instead (since mirage-protocols 6.0.0).
val listen_tcp : ?keepalive:Mirage_protocols.Keepalive.t -> t -> port:int -> (TCP.flow -> unit Lwt.t) -> unit
  • deprecated use TCP.listen instead (since mirage-protocols 6.0.0).
val listen : t -> unit Lwt.t
val connect : Netif.t -> Ethernet.t -> Arpv4.t -> Ip.t -> Icmpv4.t -> Udp.t -> Tcp.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 are functioning, so that if the user wishes to establish outbound connections, they will be able to do so.

OCaml

Innovation. Community. Security.