package tcpip

  1. Overview
  2. Docs

Parameters

module T : Mirage_time.S

Signature

type t

A keep-alive timer

val create : Mirage_protocols.Keepalive.t -> ([ `SendProbe | `Close ] -> unit Lwt.t) -> t

create configuration f clock returns a keep-alive timer which will call f in future depending on both the configuration and any calls to refresh

val refresh : t -> unit

refresh t marks the connection t as alive. This should be called when packets are received.

OCaml

Innovation. Community. Security.