CS144Lab/tests/send_equivalence_checker.hh
2021-09-28 17:03:04 -07:00

20 lines
442 B
C++

#ifndef SPONGE_LIBSPONGE_SEND_EQUIVALENCE_CHECKER_HH
#define SPONGE_LIBSPONGE_SEND_EQUIVALENCE_CHECKER_HH
#include "tcp_segment.hh"
#include <deque>
#include <optional>
class SendEquivalenceChecker {
std::deque<TCPSegment> as{};
std::deque<TCPSegment> bs{};
public:
void submit_a(TCPSegment &seg);
void submit_b(TCPSegment &seg);
void check_empty() const;
};
#endif // SPONGE_LIBSPONGE_SEND_EQUIVALENCE_CHECKER_HH