public function getOption($level, $optname)
    {
        $value = @socket_get_option($this->resource, $level, $optname);
        if ($value === false) {
            throw Exception::createFromSocketResource($this->resource);
        }
        return $value;
    }
public function getOption($level, $optname)
    {
        $value = @socket_get_option($this->resource, $level, $optname);
        if ($value === false) {
            throw Exception::createFromSocketResource($this->resource);
        }
        return $value;
    }
public function getOption ( $ level , $ optname ) { $ value = @ socket_get_option ( $ this -> resource , $ level , $ optname ) ; if ( $ value === false ) { throw Exception :: createFromSocketResource ( $ this -> resource ) ; } return $ value ; }
get socket option

@param int $level
@param int $optname
@return mixed
@throws Exception on error
@uses socket_get_option()
get socket option