func (c *Client) Write(r *protocol.WriteRequest) (*protocol.WriteResponse, error) {
	resp, err := c.send(r)
	if err != nil {
		return nil, err
	}

	if resp, ok := resp.(*protocol.WriteResponse); ok {
		return resp, nil
	}
	return nil, ErrInvalidResponse
}
// Write writes to a file, which must be open in a writable mode.
Write writes to a file, which must be open in a writable mode.
// Write writes to a file which must be open in a writable mode .
func (c *Client) Write(r *protocol.WriteRequest) (*protocol.WriteResponse, error) {
	resp, err := c.send(r)
	if err != nil {
		return nil, err
	}
	if resp, ok := resp.(*protocol.WriteResponse); ok {
		return resp, nil
	}
	return nil, ErrInvalidResponse
}
func ( c * Client ) Write ( r * protocol . WriteRequest ) ( * protocol . WriteResponse , error ) { resp , err := c . send ( r ) if err != nil { return nil , err } if resp , ok := resp . ( * protocol . WriteResponse ) ; ok { return resp , nil } return nil , ErrInvalidResponse }
Write writes to a file, which must be open in a writable mode.
Write writes to a file which must be open in a writable mode .