Package com.biglybt.core.networkmanager
Interface RateHandler
public interface RateHandler
Handler to allow external control of an entity's byte processing rate.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bytesProcessed
(int data_bytes, int protocol_bytes) Notification of any bytes processed by the entity.int[]
Get the current number of bytes allowed to be processed by the entity and protocol_is_free if [1] > 0
-
Method Details
-
getCurrentNumBytesAllowed
int[] getCurrentNumBytesAllowed()Get the current number of bytes allowed to be processed by the entity and protocol_is_free if [1] > 0- Returns:
- number of bytes allowed
-
bytesProcessed
void bytesProcessed(int data_bytes, int protocol_bytes) Notification of any bytes processed by the entity.- Parameters:
num_bytes_processed
-
-