]> git.mxchange.org Git - hub.git/blobdiff - application/hub/interfaces/lookup/peer_states/class_LookupablePeerState.php
Hub project continued:
[hub.git] / application / hub / interfaces / lookup / peer_states / class_LookupablePeerState.php
index e530c1c766897f91e69850d2caba838606081dc1..fc8e1df6f30d08c3e0e7e61a2823ba1a3b3c95e3 100644 (file)
@@ -55,6 +55,16 @@ interface LookupablePeerState extends Lookupable {
         * @return      void
         */
        function purgeOldEntriesBySocketResource ($socketResource);
+
+       /**
+        * Checks wether a given peer state (in helper instance) has changed from
+        * stored one in database.
+        *
+        * @param       $helperInstance                 An instance of a ConnectionHelper class
+        * @param       $packageData                    Valid package data array
+        * @return      $isPeerStateChanged             Wether the peer's state has changed
+        */
+       function ifPeerStateHasChanged (ConnectionHelper $helperInstance, array $packageData);
 }
 
 // [EOF]