func ExchangeWire(conn net.Conn, w, rxbuf []byte) (n int, reply *Message, err error) {
	if err = SendWire(conn, w); err != nil {
		return
	}

	if n, err = conn.Read(rxbuf); err != nil {
		return
	}

	reply = &Message{}
	p := 0
	if err = reply.Decode(rxbuf[:n], &p, nil); err != nil {
		reply = nil
	}
	return
}
// ExchangeWire exchanges a msg 'w' already in wire format through conn and
// returns a reply or an Error if any.  ExchangeBuf uses rxbuf for receiving
// the reply. ExchangeWire can hang forever if the conn doesn't have
// appropriate read and/or write timeouts already set.  Returned n reflects the
// number of bytes revecied to rxbuf.
ExchangeWire exchanges a msg 'w' already in wire format through conn and
returns a reply or an Error if any.  ExchangeBuf uses rxbuf for receiving
the reply. ExchangeWire can hang forever if the conn doesn't have
appropriate read and/or write timeouts already set.  Returned n reflects the
number of bytes revecied to rxbuf.
// ExchangeWire exchanges a msg ' w ' already in wire format through conn and // returns a reply or an Error if any . ExchangeBuf uses rxbuf for receiving // the reply . ExchangeWire can hang forever if the conn doesn ' t have // appropriate read and / or write timeouts already set . Returned n reflects the // number of bytes revecied to rxbuf .
func ExchangeWire(conn net.Conn, w, rxbuf []byte) (n int, reply *Message, err error) {
	if err = SendWire(conn, w); err != nil {
		return
	}
	if n, err = conn.Read(rxbuf); err != nil {
		return
	}
	reply = &Message{}
	p := 0
	if err = reply.Decode(rxbuf[:n], &p, nil); err != nil {
		reply = nil
	}
	return
}
func ExchangeWire ( conn net . Conn , w , rxbuf [ ] byte ) ( n int , reply * Message , err error ) { if err = SendWire ( conn , w ) ; err != nil { return } if n , err = conn . Read ( rxbuf ) ; err != nil { return } reply = & Message { } p := 0 if err = reply . Decode ( rxbuf [ : n ] , & p , nil ) ; err != nil { reply = nil } return }
ExchangeWire exchanges a msg 'w' already in wire format through conn and
returns a reply or an Error if any.
ExchangeWire exchanges a msg ' w ' already in wire format through conn and returns a reply or an Error if any .