Revision 612e856d ml/include/ml.h

View differences:

ml/include/ml.h
51 51
#include <stdint.h>
52 52
#include <sys/time.h>
53 53

  
54

  
55 54
/**
56 55
 * @brief The size of a socketID
57 56
 */
......
262 261
int mlInit(bool recv_data_cb,struct timeval timeout_value,const int port,const char *ipaddr,const int stun_port,const char *stun_ipaddr,receive_localsocketID_cb local_socketID_cb,void *arg);
263 262

  
264 263
/**
265
  * Configure the parameters for output rate control.
266
  * These values may also be set while packets are being transmitted.
267
  * @param bucketsize The size of the bucket in kbytes
268
  * @param drainrate The amount of kbytes draining in a second. If drainrate is <=0, then rateControl is completely disabled (all packets are passed).
269
*/
270
void mlSetThrottle(int bucketsize, int drainrate);
271

  
272
/**
273 264
  * Configure the verbosity of messages
274 265
  * @param log_level [0-4] the lower the less messages are printed out
275 266
*/
......
523 514
 */
524 515
int mlGetPathMTU(int ConnectionId);
525 516

  
517

  
518

  
519
/**
520
  * Configure the parameters for output rate control.
521
  * @param bucketsize The size of the bucket in kbytes
522
  * @param drainrate The amount of kbytes draining in a second. If drainrate is <=0, then rateControl is completely disabled (all packets are passed).
523
  * @param maxQueueSize In kbytes. Max data stored while limiting the output rate. If 0 packets limitted by drainrate are dropped.
524
  * @param maxQueueSizeRTX In kbytes. Max data waiting for the retransmission if needed.
525
  * @param maxTimeToHold. Time for which sent packets are stored in RTX queue in seconds.
526
*/
527
void mlSetRateLimiterParams(int bucketsize, int drainrate, int maxQueueSize, int maxQueueSizeRTX, double maxTimeToHold);
528

  
529

  
526 530
#ifdef __cplusplus
527 531
}
528 532
#endif

Also available in: Unified diff