// that there is no state (UDP itself is, of course, stateless).
#include <arpa/inet.h>
+#include <netinet/in.h>
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>
class UDPStream {
public:
// <mark_pool> can be NULL. Does not take ownership of the mark pool.
- UDPStream(const sockaddr_in6 &dst, MarkPool *mark_pool);
+ UDPStream(const sockaddr_in6 &dst, MarkPool *mark_pool, uint32_t pacing_rate);
~UDPStream();
void send(const char *data, size_t bytes);
int sock;
MarkPool *mark_pool;
int fwmark;
+ uint32_t pacing_rate;
};
#endif // !defined(_UDPSTREAM_H)