hans-2.4.0.1: IPv4 Network Stack

Safe HaskellNone
LanguageHaskell98

Hans.Layer.Tcp.Timers

Synopsis

Documentation

initTimers :: TcpHandle -> IO () Source

Schedule the timers to run on the fast and slow intervals.

whenIdleFor :: Int -> Sock () -> Sock () Source

Conditionally run an action when the connection has been idle for at least timeout SlowTicks.

set2MSL :: SlowTicks -> Sock () Source

Set the value of the 2MSL timer.

calibrateRTO :: POSIXTime -> POSIXTime -> TcpTimers -> TcpTimers Source

Calibrate the RTO timer, as specified by RFC-6298.