Chmpx::getChmpxServer
Retrieves a ChmpxServer instance
Description
public function getChmpxServer(): ChmpxServer|false {}
Retrieves a ChmpxServer instance.
Parameters
Return Values
Returns a ChmpxServer instance.
Examples
php -r '$chmpx = new Chmpx(); $chmpx->createServer("./tests/server.yaml", true); var_dump($chmpx->getChmpxServer());'
The above example will output:
object(ChmpxServer)#2 (3) {
["chmpx_handle"]=>
resource(8) of type (chmpx_handle)
["chmpx_pkt_handle"]=>
resource(9) of type (chmpx_pkt_handle)
["handle":"ChmpxServer":private]=>
int(-1)
}
See Also
- Chmpx::construct - Creates a empty Chmpx instance
- Chmpx::destruct - Destroys a Chmpx instance
- Chmpx::createServer - Creates a ChmpxServer instance