ChmpxServer Class ChmpxServer::__destruct

ChmpxServer::__construct

Create a ChmpxServer instance

Description

public function __construct($handle) {}

Create a ChmpxServer instance.

Parameters

Examples

php -r '
> $handle = chmpxpx_create_server("./tests/server.yaml", true);
> $svrobj = new ChmpxServer($handle);
> var_dump($svrobj);
> chmpxpx_destroy($handle);
'

The above example will output:

object(ChmpxServer)#1 (3) {
  ["chmpx_handle"]=>
  resource(4) of type (chmpx_handle)
  ["chmpx_pkt_handle"]=>
  resource(5) of type (chmpx_pkt_handle)
}

See Also

ChmpxServer Class ChmpxServer::__destruct