X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=greprotocol.h;h=738ec7b195ef620ddbf99db72a8a7dfa609c52f0;hb=3bcabb4fd4764b0804b8b44cb967edf7369cc714;hp=739b97e17177a0a3e9936804caf3d45fcadcb5e0;hpb=4c15e1ffd081f5e2f7840a6dea58b131c4358533;p=greproxy diff --git a/greprotocol.h b/greprotocol.h index 739b97e..738ec7b 100644 --- a/greprotocol.h +++ b/greprotocol.h @@ -15,9 +15,14 @@ public: virtual int fd() const; virtual void read_packet(Sender* sender); + int get_received_packets() const { return received_packets; } + int get_sent_packets() const { return sent_packets; } + private: int sock; sockaddr_in6 dstaddr; + + int received_packets = 0, sent_packets = 0; }; #endif // !defined(_GREPROTOCOL_H)