func (m *Message) ReceiveUDP(conn *net.UDPConn, rxbuf []byte) (n int, addr *net.UDPAddr, err error) {
	if n, addr, err = ReceiveWire(conn, rxbuf); err == nil {
		p := 0
		err = m.Decode(rxbuf[:n], &p, nil)
	}
	return
}
// ReceiveUDP reads a UDP packet from conn, copying the payload into rxbuf.  It
// returns the number of bytes copied into rxbuf and the originating address of
// the packet.  ReceiveUDP can hang forever if the conn doesn't have
// appropriate read timeout already set.
ReceiveUDP reads a UDP packet from conn, copying the payload into rxbuf.  It
returns the number of bytes copied into rxbuf and the originating address of
the packet.  ReceiveUDP can hang forever if the conn doesn't have
appropriate read timeout already set.
// ReceiveUDP reads a UDP packet from conn copying the payload into rxbuf . It // returns the number of bytes copied into rxbuf and the originating address of // the packet . ReceiveUDP can hang forever if the conn doesn ' t have // appropriate read timeout already set .
func (m *Message) ReceiveUDP(conn *net.UDPConn, rxbuf []byte) (n int, addr *net.UDPAddr, err error) {
	if n, addr, err = ReceiveWire(conn, rxbuf); err == nil {
		p := 0
		err = m.Decode(rxbuf[:n], &p, nil)
	}
	return
}
func ( m * Message ) ReceiveUDP ( conn * net . UDPConn , rxbuf [ ] byte ) ( n int , addr * net . UDPAddr , err error ) { if n , addr , err = ReceiveWire ( conn , rxbuf ) ; err == nil { p := 0 err = m . Decode ( rxbuf [ : n ] , & p , nil ) } return }
ReceiveUDP reads a UDP packet from conn, copying the payload into rxbuf.
ReceiveUDP reads a UDP packet from conn copying the payload into rxbuf .