public class Throttle extends Object
Send throttle
Will keep send pace. Up to {max_seq_packets} will be passed with no pause, but more than that will be paused so that average time between packets will be about {throttle} msec.
| Constructor and Description |
|---|
Throttle() |
| Modifier and Type | Method and Description |
|---|---|
void |
setThrottle(int msec)
Set packet send rate.
|
void |
throttle()
Must be called in packet send code.
|
public void setThrottle(int msec)
msec - average time in milliseconds between packets. Set to 0 to turn throttling off.public void throttle()
Copyright © 2019. All rights reserved.