public function addOption($key, $value)
    {
        if (!$this->isOptionKeyValid($key)) {
            throw new \RuntimeException('Invalid socket option '.$key.'.');
        }

        $this->options[$key] = $value;

        return $this;
    }