// HandleDatagramFrame handles a received DATAGRAM frame.
HandleDatagramFrame handles a received DATAGRAM frame.
// HandleDatagramFrame handles a received DATAGRAM frame .
func (h *datagramQueue) HandleDatagramFrame(f *wire.DatagramFrame) {
	data := make([]byte, len(f.Data))
	copy(data, f.Data)
	select {
	case h.rcvQueue <- data:
	default:
		h.logger.Debugf("Discarding DATAGRAM frame (%d bytes payload)", len(f.Data))
	}
}
func ( h * datagramQueue ) HandleDatagramFrame ( f * wire . DatagramFrame ) { data := make ( [ ] byte , len ( f . Data ) ) copy ( data , f . Data ) select { case h . rcvQueue <- data : default : h . logger . Debugf ( " " , len ( f . Data ) ) } }
HandleDatagramFrame handles a received DATAGRAM frame.
HandleDatagramFrame handles a received DATAGRAM frame .