protected function parseQuestion(Context $context, Response $response): \Generator
    {
        $host = yield from $this->readLabel($context);
        
        $question = \unpack('ntype/nclass', yield $this->stream->readBuffer($context, 4));
        $this->offset += 4;
        
        $response->addQuestion($host, $question['type'], $question['class']);
    }
protected function parseQuestion(Context $context, Response $response): \Generator
    {
        $host = yield from $this->readLabel($context);
        
        $question = \unpack('ntype/nclass', yield $this->stream->readBuffer($context, 4));
        $this->offset += 4;
        
        $response->addQuestion($host, $question['type'], $question['class']);
    }
protected function parseQuestion ( Context $ context , Response $ response ) : \ Generator { $ host = yield from $ this -> readLabel ( $ context ) ; $ question = \ unpack ( 'ntype/nclass' , yield $ this -> stream -> readBuffer ( $ context , 4 ) ) ; $ this -> offset += 4 ; $ response -> addQuestion ( $ host , $ question [ 'type' ] , $ question [ 'class' ] ) ; }
Parse a DNS question record and add it the given response.

@param Context $context Async execution context.
@param Response $response DNS response object.
Parse a DNS question record and add it the given response .