// Get dequeues a DATAGRAM frame for sending.
Get dequeues a DATAGRAM frame for sending.
// Get dequeues a DATAGRAM frame for sending .
func (h *datagramQueue) Get() *wire.DatagramFrame {
	select {
	case f := <-h.sendQueue:
		h.dequeued <- struct{}{}
		return f
	default:
		return nil
	}
}
func ( h * datagramQueue ) Get ( ) * wire . DatagramFrame { select { case f := <- h . sendQueue : h . dequeued <- struct { } { } return f default : return nil } }
Get dequeues a DATAGRAM frame for sending.
Get dequeues a DATAGRAM frame for sending .