]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/recipient/self/class_SelfRecipient.php
More rewrites (and code stops):
[hub.git] / application / hub / main / recipient / self / class_SelfRecipient.php
index 33a2fbaf1a797843670ced4c12246d3938771c35..f0a0c89e5f8de276a69d63559321664d630fcb0b 100644 (file)
@@ -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__ . ':' . print_r($this, 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
        }
 }