View Single Post
  #5 (permalink)  
Old January 12th, 2002
Moak's Avatar
Moak Moak is offline
Guest
 
Join Date: September 7th, 2001
Location: Europe
Posts: 816
Moak is flying high
Default

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 :-)
Reply With Quote