4 // A single UDP destination. This is done a lot less efficient than HTTP streaming
5 // since we expect to have so few of them, which also means things are a lot simpler.
6 // In particular, we run in the input's thread, so there is no backlog, which means
7 // that there is no state (UDP itself is, of course, stateless).
10 #include <netinet/in.h>
13 #include <sys/types.h>
19 // <mark_pool> can be NULL. Does not take ownership of the mark pool.
20 UDPStream(const sockaddr_in6 &dst, MarkPool *mark_pool, uint32_t pacing_rate);
23 void send(const char *data, size_t bytes);
26 UDPStream(const UDPStream& other);
35 #endif // !defined(_UDPSTREAM_H)