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