func (c *Client) Version(r *protocol.VersionRequest) (*protocol.VersionResponse, error) {
	resp, err := c.send(r)
	if err != nil {
		return nil, err
	}

	if resp, ok := resp.(*protocol.VersionResponse); ok {
		return resp, nil
	}
	return nil, ErrInvalidResponse
}
// Version performs the protocol handshake.
Version performs the protocol handshake.
// Version performs the protocol handshake .
func (c *Client) Version(r *protocol.VersionRequest) (*protocol.VersionResponse, error) {
	resp, err := c.send(r)
	if err != nil {
		return nil, err
	}
	if resp, ok := resp.(*protocol.VersionResponse); ok {
		return resp, nil
	}
	return nil, ErrInvalidResponse
}
func ( c * Client ) Version ( r * protocol . VersionRequest ) ( * protocol . VersionResponse , error ) { resp , err := c . send ( r ) if err != nil { return nil , err } if resp , ok := resp . ( * protocol . VersionResponse ) ; ok { return resp , nil } return nil , ErrInvalidResponse }
Version performs the protocol handshake.
Version performs the protocol handshake .