15 require_once __DIR__ .
'/../transport/Constants.inc.php';
24 protected $host =\HCE\transport\PROTOCOL_HOST_DEFAULT;
29 protected $port = \HCE\transport\PROTOCOL_PORT_ADMIN_DEFAULT;
34 protected $timeout = NODE_TIMEOUT;
49 $this->host = $hostName;
89 $this->timeout = $timeout;
98 return $this->timeout;
109 $this->error = $errorCode;
134 public function __construct($host = null, $port = null, $timeout = null) {
136 if ($host !== null) {
137 $this->setHost ( $host );
140 if ($port !== null) {
141 $this->setPort ( $port );
144 if ($timeout !== null) {
145 $this->setTimeout ( $timeout );