20 #ifndef NETBUFFEREDSOCKET_H
21 #define NETBUFFEREDSOCKET_H
25 #include <net/socket.h>
26 #include <download/request.h>
27 #include <download/packet.h>
28 #include <net/trafficshapedsocket.h>
59 Uint32
write(Uint32 max, bt::TimeStamp now)
override;
90 bt::Packet::Ptr selectPacket();
93 std::deque<bt::Packet::Ptr> control_packets;
94 std::deque<bt::Packet::Ptr> data_packets;
95 bt::Packet::Ptr curr_packet;
96 Uint32 ctrl_packets_sent;
98 Uint32 uploaded_data_bytes;