37 virtual void recvAck(std::unique_ptr<Ack>) = 0;
44 virtual std::pair<FrameFlags, std::unique_ptr<folly::IOBuf>>
encode(
46 std::vector<compress::Header> allHeaders,
53 std::unique_ptr<folly::IOBuf> encodedReq,
66 std::unique_ptr<folly::IOBuf>,
76 std::chrono::milliseconds
prev;
std::tuple< FrameFlags, bool, std::unique_ptr< folly::IOBuf >, SimStreamingCallback * > BlockInfo
virtual uint32_t getHolBlockCount() const =0
std::chrono::milliseconds prev
std::list< BlockInfo > packetBlocks
CompressionSimulator * simulator_
virtual ~CompressionScheme()
virtual void recvAck(std::unique_ptr< Ack >)=0
virtual std::pair< FrameFlags, std::unique_ptr< folly::IOBuf > > encode(bool newPacket, std::vector< compress::Header > allHeaders, SimStats &stats)=0
requires E e noexcept(noexcept(s.error(std::move(e))))
virtual std::unique_ptr< Ack > getAck(uint16_t seqn)=0
std::list< uint16_t > packetIndices
std::chrono::milliseconds decodeDelay
CompressionScheme(CompressionSimulator *sim)
virtual void decode(FrameFlags flags, std::unique_ptr< folly::IOBuf > encodedReq, SimStats &stats, SimStreamingCallback &cb)=0
std::list< BlockInfo > encodedBlocks
void runLoopCallback() noexceptoverride