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 Ipv6 : Mirage_protocols.IP with type ipaddr = Ipaddr.V6.t
module Udpv6 : UDPV6_DIRECT
module Tcpv6 : TCPV6_DIRECT

Signature

include Mirage_stack.V6 with module IP = Ipv6 and module TCP = Tcpv6 and module UDP = Udpv6
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 -> Ipv6.t -> Udpv6.t -> Tcpv6.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.