]> git.mxchange.org Git - hub.git/blobdiff - application/hub/interfaces/discovery/recipient/socket/class_DiscoverableSocket.php
Continued rewrite:
[hub.git] / application / hub / interfaces / discovery / recipient / socket / class_DiscoverableSocket.php
index a943526333b2cff057af3b1f09953d508164ffc6..15a280cef1769dbc62c3c791ca61e8326028a934 100644 (file)
@@ -33,6 +33,15 @@ interface DiscoverableSocket extends DiscoverableRecipient {
         * @throws      NullPointerException    If listenerInstance is NULL
         */
        function discoverSocket (array $packageData, $connectionType);
+
+       /**
+        * Tries to dicover the right listener instance
+        *
+        * @param       $protocolInstance       An instance of a HandleableProtocol class
+        * @param       $packageData            Raw package data
+        * @return      $listenerInstance       An instance of a Listenable instance or null
+        */
+       function discoverListenerInstance (HandleableProtocol $protocolInstance, array $packageData);
 }
 
 // [EOF]