// Send sends out a packet. It's guaranteed to not block.
// Callers need to make sure that there's actually space in the send queue by calling WouldBlock.
// Otherwise Send will panic.
Send sends out a packet. It's guaranteed to not block.
Callers need to make sure that there's actually space in the send queue by calling WouldBlock.
Otherwise Send will panic.
// Send sends out a packet . It ' s guaranteed to not block . // Callers need to make sure that there ' s actually space in the send queue by calling WouldBlock . // Otherwise Send will panic .
func (h *sendQueue) Send(p *packetBuffer) {
	select {
	case h.queue <- p:
	case <-h.runStopped:
	default:
		panic("sendQueue.Send would have blocked")
	}
}
func ( h * sendQueue ) Send ( p * packetBuffer ) { select { case h . queue <- p : case <- h . runStopped : default : panic ( " " ) } }
Send sends out a packet.
Send sends out a packet .