// Accept waits for and returns the next connection to the listener.
Accept waits for and returns the next connection to the listener.
// Accept waits for and returns the next connection to the listener .
func (l *PipeListener) Accept() (c net.Conn, e error) {
	select {
	case c = <-l.ch:
	case <-l.close:
		e = ErrListenerClosed
	}
	return
}
func ( l * PipeListener ) Accept ( ) ( c net . Conn , e error ) { select { case c = <- l . ch : case <- l . close : e = ErrListenerClosed } return }
Accept waits for and returns the next connection to the listener.
Accept waits for and returns the next connection to the listener .