Revision 6575ae37 include/ml.h

View differences:

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

  
272 269
/**
273 270
 * @brief Register a received packet callback.
......
517 514
 */
518 515
int mlGetPathMTU(int ConnectionId);
519 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

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

Also available in: Unified diff