It uses a special message object that creates messages with the following syntax:
"RPM:seq_number::payload"
"ACK:seq_number"
Unacknowledged messages are resent every 50 msec, up to 50 times. This configuration has been tested effective for the order of under 1000 small consecutive messages (in a for loop). Higher order streams require resetting the timeout and resend limit configuration parameters with the methods provided. The following settings have been found effective for small message streams of the following orders:
1000 messages: timeout=100
10000 messages: timeout=200; resendLimit=125
100000 messages: timeout=800; resendLimit=1000 (upper bound)
The use of this class is not recommended for larger message streams. As the sizes of the streams increase, the receive memory size (default 1000 messages) should also be increased, but the correct settings have not been tested. @see programming5.net.sockets.UDPClient @see programming5.net.ReliableProtocolMessage @see programming5.net.ReliableMessageArrivedListener @author Andres Quiroz Hernandez @version 6.19
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|