ChmpxServer::__construct
Create a ChmpxServer instance
Description
public function __construct($handle) {}
Create a ChmpxServer instance.
Parameters
- handle
- Specifies a chmpx handle.
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
- chmpxpx_create_server - Creates a chmpx server handle
- chmpxpx_destroy - Destroys a chmpx handle