$ourPort = $this->getConfigInstance()->readConfig('node_tcp_listen_port');
// Extract port
- $bootPort = substr($this->bootIpPort, -strlen($ourPort), strlen($ourPort));
+ $bootPort = substr($this->getBootIpPort(), -strlen($ourPort), strlen($ourPort));
// Is the port the same?
if ($bootPort == $ourPort) {
// It is the same!
- $this->getDebugInstance()->output('BOOTSTRAP: IP/port matches bootstrapping node ' . $this->bootIpPort . '.');
+ $this->getDebugInstance()->output('BOOTSTRAP: IP/port matches bootstrapping node ' . $this->getBootIpPort() . '.');
// Now, does the mode match (should be 'boot'!)
if ($this->getRequestInstance()->getRequestElement('mode') == 'boot') {
}
}
+ /**
+ * Getter for boot IP/port combination
+ *
+ * @return $bootIpPort The IP/port combination of the boot node
+ */
+ protected final function getBootIpPort () {
+ return $this->bootIpPort;
+ }
+
/**
* Initializes queues which every node needs
*