* "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]