Question from yesterday on IRC...
Q: When do we throw away messages, TTL=0 or TTL=1?
A: Here is a little pseudo code:
if(ttl == 0) DropConnection(); //bad client, must not happen
ttl--; hop++;
if(ttl>0) message.DoForward(); //message routing
message.DoEvaluateAndResponse(); //work :-) |