tcpip

OCaml TCP/IP networking stack, used in MirageOS
Library tcp
Module Tcp . Stats
type counter

The type for counters.

val value : counter -> int

The counter value. value t is {!incr} t - {!decrs} t.

type t = {
tcp_flows : counter;
tcp_listens : counter;
tcp_channels : counter;
tcp_connects : counter;
tcp_timers : counter;
}
val pp : Format.formatter -> t -> unit
val incr_flow : unit -> unit
val decr_flow : unit -> unit
val incr_listen : unit -> unit
val decr_listen : unit -> unit
val incr_channel : unit -> unit
val decr_channel : unit -> unit
val incr_connect : unit -> unit
val decr_connect : unit -> unit
val incr_timer : unit -> unit
val decr_timer : unit -> unit
val singleton : t
module Gc : sig ... end

Show GC stats