33 bool eos()
const {
return end_of_stream_; }
41 size_t tryRead(roo::byte* buf,
size_t count,
bool& outgoing_data_ready);
51 size_t ack(roo::byte* buf);
55 const roo::byte* payload,
size_t len,
bool is_final,
56 bool& has_new_data_to_read);
72 uint32_t my_stream_id_;
88 std::unique_ptr<InBuffer[]> in_buffers_;
89 mutable InBuffer* current_in_buffer_;
90 mutable uint8_t current_in_buffer_pos_;
109 roo_time::Uptime recv_himark_update_expiration_;
111 uint32_t packets_received_;
size_t tryRead(roo::byte *buf, size_t count, bool &outgoing_data_ready)
void setConnected(SeqNum peer_seq_num, bool control_bit)
size_t updateRecvHimark(roo::byte *buf, long &next_send_micros)
void markInputClosed(bool &outgoing_data_ready)
bool handleDataPacket(bool control_bit, uint16_t seq_id, const roo::byte *payload, size_t len, bool is_final, bool &has_new_data_to_read)
uint32_t packets_received() const
void init(uint32_t my_stream_id)
size_t availableForRead() const
unsigned int buffer_size_log2() const
size_t ack(roo::byte *buf)
uint32_t my_stream_id() const
uint16_t offset_for(SeqNum seq) const
int capacity_log2() const