// 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, uint32_t pacing_rate, int ttl, int multicast_iface_index);
~UDPStream();
void send(const char *data, size_t bytes);
sockaddr_in6 dst;
int sock;
- MarkPool *mark_pool;
- int fwmark;
};
#endif // !defined(_UDPSTREAM_H)