package tcpip

  1. Overview
  2. Docs

doc/tcpip.tcp/Tcp/Keepalive/Make/index.html

Module Keepalive.MakeSource

Parameters

module T : Mirage_time.S

Signature

Sourcetype t

A keep-alive timer

Sourceval create : Tcpip.Tcp.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

Sourceval refresh : t -> unit

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

OCaml

Innovation. Community. Security.