package tcpip

  1. Overview
  2. Docs
include Mirage_stack_lwt.V4 with type netif = Ipaddr.V4.t list and type tcpv4 = Tcpv4_socket.t and type udpv4 = Udpv4_socket.t and type ipv4 = Ipaddr.V4.t option and module UDPV4 = Udpv4_socket and module TCPV4 = Tcpv4_socket and module IPV4 = Ipv4_socket
type netif = Ipaddr.V4.t list
type !'a config = 'a Mirage_stack_lwt.stackv4_config
type ipv4addr = Ipaddr.V4.t
type buffer = Cstruct.t
type udpv4 = Udpv4_socket.t
type tcpv4 = Tcpv4_socket.t
type ipv4 = Ipaddr.V4.t option
type 'a io = 'a Lwt.t
type t
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
val connect : netif Mirage_stack_lwt.stackv4_config -> Udpv4_socket.t -> Tcpv4_socket.t -> t Lwt.t
OCaml

Innovation. Community. Security.