public function getOption($level, $optname)
    {
        return static::exceptionOnFalse(
            $this->resource,
            function ($resource) use ($level, $optname) {
                return @socket_get_option($resource, $level, $optname);
            }
        );
    }