func (mc *Client) sendAck(pkt *gomemcached.MCRequest) (int, error) { res := gomemcached.MCResponse{ Opcode: pkt.Opcode, Opaque: pkt.Opaque, Status: gomemcached.SUCCESS, } return res.Transmit(mc.conn) }
func transmitResponse(o io.Writer, res *gomemcached.MCResponse) (int, error) { return res.Transmit(o) }