]> git.mxchange.org Git - hub.git/blobdiff - application/hub/interfaces/socket/class_SocketTag.php
Now incoming, outgoing and 'server' pools are possible
[hub.git] / application / hub / interfaces / socket / class_SocketTag.php
index b9a41d6d597dee50bdd7a571dd800bcc5275e52b..9e65c96c5ddf82ce7abb19b193d6fb4e12805fe0 100644 (file)
@@ -26,9 +26,11 @@ interface SocketTag extends FrameworkInterface {
         * "Getter" for a valid socket resource from given packae data.
         *
         * @param       $packageData            Raw package data
+        * @param       $connectionType         Type of connection, can be 'incoming', 'outgoing', 'server' or default
         * @return      $socketResource         Socket resource
+        * @throws      InvalidConnectionTypeException  If the provided connection type is not valid
         */
-       function getSocketFromPackageData (array $packageData);
+       function getSocketFromPackageData (array $packageData, $connectionType = NULL);
 }
 
 // [EOF]