*/
public function doBootstrapping () {
// Now check if the IP address matches one of the bootstrap nodes
- if ($this->ifAddressMatchesBootstrappingNodes($this->getConfigInstance()->detectServerAddress())) {
+ if ($this->ifAddressMatchesBootstrapNodes($this->getConfigInstance()->detectServerAddress())) {
// Get our port from configuration
$ourPort = $this->getConfigInstance()->getConfigEntry('node_listen_port');
// Is the port the same?
if ($bootPort == $ourPort) {
// It is the same!
- self::createDebugInstance(__CLASS__)->debugOutput('BOOTSTRAP: IP/port matches bootstrapping node ' . $this->getBootIpPort() . '.');
+ self::createDebugInstance(__CLASS__)->debugOutput('BOOTSTRAP: IP/port matches bootstrap node ' . $this->getBootIpPort() . '.');
// Now, does the mode match
if ($this->getRequestInstance()->getRequestElement('mode') == self::NODE_TYPE_BOOT) {
// Output debug message
- self::createDebugInstance(__CLASS__)->debugOutput('BOOTSTRAP: Our node is a valid bootstrapping node.');
+ self::createDebugInstance(__CLASS__)->debugOutput('BOOTSTRAP: Our node is a valid bootstrap node.');
} else {
// Output warning
self::createDebugInstance(__CLASS__)->debugOutput('BOOTSTRAP: WARNING: Mismatching mode ' . $this->getRequestInstance()->getRequestElement('mode') . '!=' . BaseHubNode::NODE_TYPE_BOOT . ' detected.');
const OBJECT_LIST_SEPARATOR = ',';
/**
- * IP/port number of bootstrapping node
+ * IP/port number of bootstrap node
*/
private $bootIpPort = '';
}
/**
- * Checks whether the given IP address matches one of the bootstrapping nodes
+ * Checks whether the given IP address matches one of the bootstrap nodes
*
* @param $remoteAddr IP address to checkout against our bootstrapping list
* @return $isFound Whether the IP is found
*/
- protected function ifAddressMatchesBootstrappingNodes ($remoteAddr) {
+ protected function ifAddressMatchesBootstrapNodes ($remoteAddr) {
// By default nothing is found
$isFound = FALSE;