code: func (net *Network) Subscribe(events chan *Event) {
  	for {
  		select {
  		case event, ok := <-events:
  			if !ok {
  				return
  			}
  			if event.Control {
  				net.executeControlEvent(event)
  			}
  		case <-net.quitc:
  			return
  		}
  	}
  }
docs: // Subscribe reads control events from a channel and executes them