]> git.mxchange.org Git - hub.git/blobdiff - application/hub/interfaces/discovery/class_DiscoverableSocket.php
Now incoming, outgoing and 'server' pools are possible
[hub.git] / application / hub / interfaces / discovery / class_DiscoverableSocket.php
index dbc284efec1152d668d039fd87ca9967e5aaa736..cf57357a2d47bfa4c40d5630e4269d2cc0f9991b 100644 (file)
@@ -27,10 +27,12 @@ interface DiscoverableSocket extends FrameworkInterface {
         * matching socket resource.
         *
         * @param       $packageData            Raw package data array
-        * @param       $packageInstance        A Deliverable instance
+        * @param       $connectionType         Type of connection, can be 'incoming' or 'outgoing', *NEVER* 'server'!
         * @return      $socketResource         A valid socket resource
+        * @throws      NoListGroupException    If the procol group is not found in peer list
+        * @throws      NullPointerException    If listenerInstance is NULL
         */
-       function discoverSocket (array $packageData);
+       function discoverSocket (array $packageData, $connectionType);
 }
 
 // [EOF]