ec2dns\ec2dns::run PHP Method

run() public method

This method starts the ec2dns eventloop
public run ( ) : void
return void
    function run()
    {
        try {
            $this->dns->on('query', xcallable($this, 'onQueryCallback'));
            $this->dns->run();
        } catch (\Hoa\Socket\Exception $e) {
            throw new \InvalidArgumentException($e->getMessage());
        }
    }