$sentBytes = 0;
// Get the right connection instance
- $infoInstance = $this->getRegistryInstance()->getInfoInstanceFromPackageInstance($packageInstance);
+ $infoInstance = $this->getRegistryInstance()->determineInfoInstanceByPackageInstance($packageInstance);
// Test helper instance
/* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('NETWORK-PACKAGE-HANDLER: infoInstance[]=%s', gettype($infoInstance)));
}
/**
- * "Getter" for info instance from given package data
+ * Determines an information instance from a given package instance
*
* @param $packageInstance An instance of a DeliverablePackage class
* @return $infoInstance An instance of a ShareableInfo class
*/
- public function getInfoInstanceFromPackageInstance (DeliverablePackage $packageInstance) {
+ public function determineInfoInstanceByPackageInstance (DeliverablePackage $packageInstance) {
// Init info instance
/* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('SOCKET-REGISTRY: packageInstance=%s - CALLED!', $packageInstance));
$infoInstance = NULL;
function getRegisteredSocketResource (Listenable $listenerInstance);
/**
- * "Getter" for info instance from given package data
+ * Determines an infomation instance from a given package instance
*
* @param $packageInstance An instance of a DeliverablePackage class
* @return $infoInstance An instance of a ShareableInfo class
*/
- function getInfoInstanceFromPackageInstance (DeliverablePackage $packageInstance);
+ function determineInfoInstanceByPackageInstance (DeliverablePackage $packageInstance);
/**
* Checks whether a socket of a connection type 'incoming' is registered.