Statistics
| Branch: | Revision:

ml / util / rateLimiter.h @ 6575ae37

History | View | Annotate | Download (476 Bytes)

1
/*
2
 *          
3
 *
4
 *        upgraded rateControl - token bucket
5
 * 
6
 *        Agnieszka Witczak & Szymon Kuc
7
 *     
8
 */
9

    
10
//#include <sys/time.h>
11

    
12
#include <stdio.h>
13
#include <stdlib.h>
14
#include <event2/event.h>
15
#include <errno.h>
16

    
17

    
18
#define HP 1
19
#define NO_RTX 2
20

    
21
void planFreeSpaceInBucketEvent();
22

    
23
void freeSpaceInBucket_cb (int fd, short event,void *arg);
24

    
25
int queueOrSendPacket(const int udpSocket, struct iovec *iov, int len, struct sockaddr_in *socketaddr, unsigned char priority);
26