func (c *Client) Read(r *protocol.ReadRequest) (*protocol.ReadResponse, error) {
	resp, err := c.send(r)
	if err != nil {
		return nil, err
	}

	if resp, ok := resp.(*protocol.ReadResponse); ok {
		return resp, nil
	}
	return nil, ErrInvalidResponse
}
// Read reads from a file, which must be open in a readable mode.
Read reads from a file, which must be open in a readable mode.
// Read reads from a file which must be open in a readable mode .
func (c *Client) Read(r *protocol.ReadRequest) (*protocol.ReadResponse, error) {
	resp, err := c.send(r)
	if err != nil {
		return nil, err
	}
	if resp, ok := resp.(*protocol.ReadResponse); ok {
		return resp, nil
	}
	return nil, ErrInvalidResponse
}
func ( c * Client ) Read ( r * protocol . ReadRequest ) ( * protocol . ReadResponse , error ) { resp , err := c . send ( r ) if err != nil { return nil , err } if resp , ok := resp . ( * protocol . ReadResponse ) ; ok { return resp , nil } return nil , ErrInvalidResponse }
Read reads from a file, which must be open in a readable mode.
Read reads from a file which must be open in a readable mode .