func (m *Message) ReceiveTCP(conn *net.TCPConn, rxbuf []byte) (n int, err error) {
	if n, _, err = ReceiveWire(conn, rxbuf); err == nil {
		p := 0
		err = m.Decode(rxbuf[:n], &p, nil)
	}
	return
}
// ReceiveTCP attempts to read a DNS message m through conn and returns an
// Error if any.  ReceiveTCP uses rxbuf for receiving the message. ReceiveTCP
// can hang forever if the conn doesn't have appropriate read timeout already
// set.  Returned n reflects the number of bytes revecied to rxbuf.  The 2 byte
// msg len prefix is expected firstly.  The two prefix bytes are not reflected
// in the returned size 'n'.
ReceiveTCP attempts to read a DNS message m through conn and returns an
Error if any.  ReceiveTCP uses rxbuf for receiving the message. ReceiveTCP
can hang forever if the conn doesn't have appropriate read timeout already
set.  Returned n reflects the number of bytes revecied to rxbuf.  The 2 byte
msg len prefix is expected firstly.  The two prefix bytes are not reflected
in the returned size 'n'.
// ReceiveTCP attempts to read a DNS message m through conn and returns an // Error if any . ReceiveTCP uses rxbuf for receiving the message . ReceiveTCP // can hang forever if the conn doesn ' t have appropriate read timeout already // set . Returned n reflects the number of bytes revecied to rxbuf . The 2 byte // msg len prefix is expected firstly . The two prefix bytes are not reflected // in the returned size ' n ' .
func (m *Message) ReceiveTCP(conn *net.TCPConn, rxbuf []byte) (n int, err error) {
	if n, _, err = ReceiveWire(conn, rxbuf); err == nil {
		p := 0
		err = m.Decode(rxbuf[:n], &p, nil)
	}
	return
}
func ( m * Message ) ReceiveTCP ( conn * net . TCPConn , rxbuf [ ] byte ) ( n int , err error ) { if n , _ , err = ReceiveWire ( conn , rxbuf ) ; err == nil { p := 0 err = m . Decode ( rxbuf [ : n ] , & p , nil ) } return }
ReceiveTCP attempts to read a DNS message m through conn and returns an
Error if any.
ReceiveTCP attempts to read a DNS message m through conn and returns an Error if any .