Revision 5f3adef4 ml/include/ml.h

View differences:

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

  
54

  
54 55
/**
55 56
 * @brief The size of a socketID
56 57
 */
......
261 262
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);
262 263

  
263 264
/**
264
  * Configure the verbosity of messages
265
  * @param log_level [0-4] the lower the less messages are printed out
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).
266 269
*/
267
void mlSetVerbosity(int log_level);
270
void mlSetThrottle(int bucketsize, int drainrate);
268 271

  
269 272
/**
270 273
 * @brief Register a received packet callback.
......
514 517
 */
515 518
int mlGetPathMTU(int ConnectionId);
516 519

  
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

  
530 520
#ifdef __cplusplus
531 521
}
532 522
#endif

Also available in: Unified diff