5 #include <netinet/in.h>
11 class GREProtocol : public Sender, public Reader {
13 GREProtocol(const in6_addr &myaddr, const in6_addr &dst);
14 virtual void send_packet(uint16_t proto, const std::string &data, uint32_t incoming_seq);
15 virtual int fd() const;
16 virtual void read_packet(Sender* sender);
18 int get_received_packets() const { return received_packets; }
19 int get_sent_packets() const { return sent_packets; }
25 int received_packets = 0, sent_packets = 0;
28 #endif // !defined(_GREPROTOCOL_H)