[Bamboo-Users] Code Snippet
Martina.Baldanzi at isti.cnr.it
Martina.Baldanzi at isti.cnr.it
Tue Dec 4 17:22:27 UTC 2007
Dear All,
I have a question about a code snippet in file bamboo.lss.Network.java.
It's not clear the meaning of the following do-while loop:
do {
dp *= drop_prob;
ts -= 5;
}
while (ts > 0);
inside the
public Object send(final QuickSerializable msg, final InetSocketAddress
dst,
final long timeoutSeconds,
final Thunk1<Boolean> callback) method.
I think that the loop calculates the probability to drop a message, but I
don't understand the meaning. Any Ideas?
Thank you very much,
Martina
More information about the Bamboo-Users
mailing list