Revision 08a4230a include/ml.h
include/ml.h | ||
---|---|---|
262 | 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); |
263 | 263 |
|
264 | 264 |
/** |
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 |
/** |
|
265 | 273 |
* @brief Register a received packet callback. |
266 | 274 |
* This function is to register a callback that is invoked when a messaging layer packet is received. |
267 | 275 |
* @param recv_pkt_inf_cb A function pointer to a callback function from the type get_recv_pkt_inf_cb |
Also available in: Unified diff