Expand description
A message handed to the cloud relay is queued, not delivered: the relay keeps it for a short window and drops it if nobody picks it up, and the sender never heard. This tells the sender, with one AgentMux system note for its next turn, when a message it queued is still unconfirmed after that window, naming the target and the message id, so it can ask again or reach the target another way instead of waiting on a message that went nowhere.
Nothing here learns whether a message was picked up: the one thing srv can see is the target writing to the sender, which shows the target is reachable and so cancels the note. Every other queued message is reported as unconfirmed, in those words, never as lost.
Constants§
- RELAY_
HOLD_ MS - How long the relay keeps a message nobody picked up; what the send answer tells the sender.
Functions§
- heard_
from - A message from
sendertoreceiverarrived: ifreceiverhad queued one forsender,senderis reachable and that one is no longer watched. - queued_
answer - The answer to a send that the relay queued: the usual response, plus what srv knows that the
sender can act on at once.
target_in_accountis the relay’s word on whether the name is one of the sender’s own account’s agents;lan_peersare the LAN peers this machine can see, in words (peer_words::describe_peer), because the message got this far only because the target is not running here or on any of them. - watch
- Watch a message just queued at the relay for
tobyfrom: once the window has passed with no word fromto,fromgets the note at its next turn.