X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Fmain%2Frecipient%2Fself%2Fclass_SelfRecipient.php;h=85d29eab85b3a1e13598497075d278db4a7d0361;hb=44314097c8abbfef2ee703eeda601dffd22520af;hp=efedc12835962b062bc174fddc34e531f738d76b;hpb=ac3482e751e970390ad3a2b38a1350f63d87fe10;p=hub.git diff --git a/application/hub/main/recipient/self/class_SelfRecipient.php b/application/hub/main/recipient/self/class_SelfRecipient.php index efedc1283..85d29eab8 100644 --- a/application/hub/main/recipient/self/class_SelfRecipient.php +++ b/application/hub/main/recipient/self/class_SelfRecipient.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Hub Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 Hub Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -46,7 +46,7 @@ class SelfRecipient extends BaseRecipient implements Recipient { } /** - * Tries to resolve given recipient into session ids or ip:port combination + * Tries to resolve given recipient into session ids or Universal Node Locator * depending on implementation (hint: Template Method Pattern) * * @param $recipient Recipient to resolve (e.g. could be a virtual recipient or direct session id) @@ -58,6 +58,8 @@ class SelfRecipient extends BaseRecipient implements Recipient { public function resolveRecipient ($recipient, Listable $listInstance, array $packageData) { // Make sure the recipient is valid //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('SELF-RECIPIENT: recipient=' . $recipient); + // @TODO Unfinished + die(__METHOD__ . 'recipient=:' . print_r($recipient, TRUE)); assert($recipient == NetworkPackage::NETWORK_TARGET_SELF); // Determine own port @@ -69,7 +71,7 @@ class SelfRecipient extends BaseRecipient implements Recipient { // Is it not empty? if (!empty($ip)) { // Add it to the list - $listInstance->addEntry('ip_port', $ip . ':' . $port); + $listInstance->addEntry('unl', $ip . ':' . $port); } // END - if } }