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