X-Git-Url: https://git.mxchange.org/?p=hub.git;a=blobdiff_plain;f=application%2Fhub%2Fmain%2Fdht%2Fnode%2Fclass_NodeDhtFacade.php;h=18d9addbd19bc3ff8ffb6923a430cd0fe35f6a6f;hp=281c51a752fd1716b57ce4cd7450b422f31627d9;hb=73aff29b9bc78031853b0b8c0fe0a8e04f66ac29;hpb=62f2546efa5ec7585c5ce216e6a9676595b1b30b diff --git a/application/hub/main/dht/node/class_NodeDhtFacade.php b/application/hub/main/dht/node/class_NodeDhtFacade.php index 281c51a75..18d9addbd 100644 --- a/application/hub/main/dht/node/class_NodeDhtFacade.php +++ b/application/hub/main/dht/node/class_NodeDhtFacade.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 Hub Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Hub Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -158,7 +158,7 @@ class NodeDhtFacade extends BaseDht implements DistributableNode, Registerable { * following data must always be present: * * - session-id (for finding the node's record together with below data) - * - external-ip (hostname or IP number) + * - external-address (hostname or IP number) * - listen-port (TCP/UDP listen port for inbound connections) * * @param $messageArray An array with all minimum message data @@ -174,7 +174,7 @@ class NodeDhtFacade extends BaseDht implements DistributableNode, Registerable { // Debug message //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DHT-FACADE[' . __METHOD__ . ':' . __LINE__ . ']: state=' . $this->getPrintableState() . ',messageData=' . print_r($messageData, TRUE) . ',handlerInstance=' . $handlerInstance->__toString() . ',forceUpdate=' . intval($forceUpdate) . ',count(getSearchData())=' . count($handlerInstance->getSearchData())); - // Search for the node's session id and external IP/hostname + TCP/UDP listen port + // Search for the node's session id and external address/hostname + TCP/UDP listen port foreach ($handlerInstance->getSearchData() as $key) { // Debug message //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DHT-FACADE[' . __METHOD__ . ':' . __LINE__ . ']: state=' . $this->getPrintableState() . ',key=' . $key); @@ -208,8 +208,7 @@ class NodeDhtFacade extends BaseDht implements DistributableNode, Registerable { } else { /* * Do not register non-existent nodes here. This is maybe fatal, - * caused by "stolen" session id and/or not matching IP - * number/port combination. + * caused by "stolen" session id and/or not matching address. */ throw new NodeSessionIdVerficationException(array($this, $messageData), BaseHubSystem::EXCEPTION_NODE_SESSION_ID_NOT_VERIFYING); }