]> git.localhorst.tv Git - blank.git/blobdiff - src/net/ConnectionHandler.hpp
also tell connection handlers about ack'd packets
[blank.git] / src / net / ConnectionHandler.hpp
index 29595e5061e01c9bac2a8671158191cd6e768d68..ab9761af3d30391abca9ae640740d63918ef1ff5 100644 (file)
@@ -13,6 +13,9 @@ class ConnectionHandler {
 public:
        void Handle(const UDPpacket &);
 
+       // called as soon as the remote end ack'd given packet
+       virtual void OnPacketReceived(std::uint16_t) { }
+       // called if the remote end probably didn't get given packet
        virtual void OnPacketLost(std::uint16_t) { }
 
        virtual void OnTimeout() { }