Safe Haskell | None |
---|---|
Language | Haskell2010 |
- tcpTimers :: NetworkStack -> IO ()
- updateActive :: NetworkStack -> Bool -> Tcb -> IO ()
- handleRTO :: NetworkStack -> Tcb -> TcpTimers -> IO ()
- handle2MSL :: NetworkStack -> Tcb -> TcpTimers -> IO ()
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.