15 @date_default_timezone_set ( @date_default_timezone_get () );
17 require_once
'hce/transport/Connection.inc.php';
23 echo
'Connection instance ' . var_export (
$connection->getConnectionArray (), true ) . PHP_EOL;
25 echo
'Error ' .
$connection->error .
' create connection instance with default initialization' . PHP_EOL;
30 $connection = new \HCE\transport\Connection ( array (
31 'host' =>
'localhost',
32 'port' => \HCE\transport\PROTOCOL_PORT_ADMIN_DEFAULT,
33 'type' =>\HCE\transport\PROTOCOL_CONNECTION_TYPE_ADMIN,
34 'identity' => \HCE\transport\IdGenerator::getClientId ()
37 echo
'Connection instance ' . var_export (
$connection->getConnectionArray (), true ) . PHP_EOL;
39 echo
'Error ' .
$connection->error .
' create connection instance with configured initialization' . PHP_EOL;
45 echo
'Connection opened' . PHP_EOL;
47 echo
'Connection closed' . PHP_EOL;
49 echo
'Error connection opene!' . PHP_EOL;