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