/**
* Determines the protoctol name
*
- * @param $packageData Valid package data
- * @return $protocolName Name of used protocol (TCP/UDP/etc.)
+ * @param $packageData Valid package data
+ * @return $protocolInstance An instance of a ProtocolHandler class
*/
protected function determineProtocolByPackageData (array $packageData) {
// First we need a tags instance
* and if so we can re-use it. If there is no socket registered, we try
* to make a new connection (TCP or UDP) to the given IP:port.
*/
- $protocolName = $tagsInstance->chooseProtocolFromPackageData($packageData);
+ $protocolInstance = $tagsInstance->chooseProtocolFromPackageData($packageData);
// Return it
- return $protocolName;
+ return $protocolInstance;
}
/**