package tcpip

  1. Overview
  2. Docs

Parameters

module IP : Mirage_protocols.IP
module R : Mirage_random.S

Signature

include Mirage_protocols.UDP with type ipaddr = IP.ipaddr and type ipinput = src:IP.ipaddr -> dst:IP.ipaddr -> Cstruct.t -> unit Lwt.t
type error
val pp_error : error Fmt.t
type ipaddr = IP.ipaddr
type ipinput = src:IP.ipaddr -> dst:IP.ipaddr -> Cstruct.t -> unit Lwt.t
type t
val disconnect : t -> unit Lwt.t
type callback = src:ipaddr -> dst:ipaddr -> src_port:int -> Cstruct.t -> unit Lwt.t
val input : listeners:(dst_port:int -> callback option) -> t -> ipinput
val write : ?src:ipaddr -> ?src_port:int -> ?ttl:int -> dst:ipaddr -> dst_port:int -> t -> Cstruct.t -> (unit, error) Stdlib.result Lwt.t
val connect : IP.t -> t Lwt.t
OCaml

Innovation. Community. Security.