*/
private $receiverInstance = NULL;
- /**
- * State instance
- */
- private $stateInstance = NULL;
-
/**
* Listener pool instance
*/
*/
private $infoInstance = NULL;
- /**
- * Name of used protocol
- */
- private $protocolName = 'invalid';
-
/**
* Protected constructor
*
parent::__construct($className);
}
- /**
- * Getter for node instance
- *
- * @return $nodeInstance An instance of a node node
- */
- public final function getNodeInstance () {
- return $this->nodeInstance;
- }
-
- /**
- * Setter for node instance
- *
- * @param $nodeInstance An instance of a node node
- * @return void
- */
- protected final function setNodeInstance (NodeHelper $nodeInstance) {
- $this->nodeInstance = $nodeInstance;
- }
-
/**
* Setter for network package handler instance
*
return $this->receiverInstance;
}
- /**
- * Setter for state instance
- *
- * @param $stateInstance A Stateable instance
- * @return void
- */
- public final function setStateInstance (Stateable $stateInstance) {
- $this->stateInstance = $stateInstance;
- }
-
- /**
- * Getter for state instance
- *
- * @return $stateInstance A Stateable instance
- */
- public final function getStateInstance () {
- return $this->stateInstance;
- }
-
/**
* Setter for listener pool instance
*
return $this->getConfigInstance()->getConfigEntry('session_id');
}
- /**
- * Getter for protocol name
- *
- * @return $protocolName Name of used protocol
- */
- public final function getProtocolName () {
- return $this->protocolName;
- }
-
- /**
- * Setter for protocol name
- *
- * @param $protocolName Name of used protocol
- * @return void
- */
- protected final function setProtocolName ($protocolName) {
- $this->protocolName = $protocolName;
- }
-
/**
* Constructs a callable method name from given socket error code. If the
* method is not found, a generic one is used.
*/
protected function getSocketErrorHandlerFromCode ($errorCode) {
// Create a name from translated error code
- $handlerName = 'socketError' . $this->convertToClassName($this->translateSocketErrorCodeToName($errorCode)) . 'Handler';
+ $handlerName = 'socketError' . self::convertToClassName($this->translateSocketErrorCodeToName($errorCode)) . 'Handler';
// Is the call-back method there?
if (!method_exists($this, $handlerName)) {