hans-3.0.2: Network Stack

Safe HaskellNone
LanguageHaskell2010

Hans.Tcp.Timers

Synopsis

Documentation

tcpTimers :: NetworkStack -> IO () Source #

Process the slow and fast tcp timers. The fast timer runs four times a second, while the slow timer runs two times a second.

updateActive :: NetworkStack -> Bool -> Tcb -> IO () Source #

The body of the fast and slow tick handlers. The boolean indicates whether or not the slow tick should also be run.

handleRTO :: NetworkStack -> Tcb -> TcpTimers -> IO () Source #

Handle the retransmit timer. When the timer expires, if there is anything in the send window, retransmit the left-most segment.

handle2MSL :: NetworkStack -> Tcb -> TcpTimers -> IO () Source #

Make sure that the connection is still active. The Idle timer is checked when the 2MSL timer expires.