// Receive gets a received DATAGRAM frame.
Receive gets a received DATAGRAM frame.
// Receive gets a received DATAGRAM frame .
func (h *datagramQueue) Receive() ([]byte, error) {
	select {
	case data := <-h.rcvQueue:
		return data, nil
	case <-h.closed:
		return nil, h.closeErr
	}
}
func ( h * datagramQueue ) Receive ( ) ( [ ] byte , error ) { select { case data := <- h . rcvQueue : return data , nil case <- h . closed : return nil , h . closeErr } }
Receive gets a received DATAGRAM frame.
Receive gets a received DATAGRAM frame .