|
| Barracuda.PendingAck | | Maintainer | Henning Guenther |
|
|
|
| Description |
| A datastructure storing messages for that we await an ACK.
|
|
| Synopsis |
|
|
|
| Documentation |
|
| data PendingAck sign |
Instances | |
|
|
| empty :: PendingAck sign |
| Creates an empty PendingAck-structure
|
|
| insert |
|
|
| reinsert |
| :: UTCTime | The time the message was sent for the first time
| | -> UTCTime | The time when the message was sent last
| | -> Routed TargetContent sign | The message
| | -> SockAddr | The address the message was sent to
| | -> Set SockAddr | Hosts that were unsuccessfully used in the routing process
| | -> PendingAck sign | The PendingAck-structure in which to insert
| | -> PendingAck sign | | | Insert a message that already was unsuccessfully routed over a number of hosts.
|
|
|
| purgeNoAck |
| :: UTCTime | Now
| | -> NominalDiffTime | How long to wait for an ACK-message
| | -> PendingAck sign | | | -> (PendingAck sign, [(Routed TargetContent sign, UTCTime, Set SockAddr)]) | | | Removes and returns all messages whose TTL has run out or received no ack
|
|
|
| ack |
| :: UserID | User of the received ACK
| | -> MessageID | Message-id of the received ACK
| | -> SockAddr | The address that sent the ACK
| | -> PendingAck sign | | | -> PendingAck sign | | | To be called when an ACK-message was received
|
|
|
| Produced by Haddock version 0.8 |