code: func (s *Server) mainloop() {
  	if s.ipv4conn != nil {
  		go s.recv(s.ipv4conn)
  	}
  	if s.ipv6conn != nil {
  		go s.recv(s.ipv6conn)
  	}
  }
docs: // Start listeners and waits for the shutdown signal from exit channel