Esempio n. 1
0
 private static void Main( /*string[] args*/)
 {
     var server = new Router.Router();
     server.Start();
     Console.ReadLine();
     server.Stop();
 }
Esempio n. 2
0
        private static void Main(/*string[] args*/)
        {
            var server = new Router.Router();

            server.Start();
            Console.ReadLine();
            server.Stop();
        }
Esempio n. 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Orchestrator"/> class.
        /// </summary>
        /// <param name="connectionBroker">The <see cref="ConnectionBroker"/> that lobbies created by this <see cref="Orchestrator"/> should request sockets from.</param>
        /// <param name="router">Router to connect new lobbies to.</param>
        internal Orchestrator(ConnectionBroker connectionBroker, Router.Router router)
        {
            this.ConnectionBroker = connectionBroker;
            this.Router           = router;

            API.Instance.AttachCreateLobbyHandler(this);
            API.Instance.AttachHighScoreListHandler(this);
            API.Instance.AttachLobbyHandler(this);
            API.Instance.AttachLobbyListHandler(this);
            API.Instance.AttachVerifyVersionHandler(this);
        }
Esempio n. 4
0
 public RobotGUI(SerialPortWrapper serial, Router.Router router)
     : base(serial)
 {
     this.router = router;
     base.onRobotStatusChange += new EventHandler (RouterPositionUpdate);
 }
Esempio n. 5
0
 public Settings(Robot.Robot robot, Router.Router router)
 {
     this.router = router;
     this.robot  = robot;
 }
Esempio n. 6
0
 public Settings(Robot.Robot robot, Router.Router router)
 {
     this.router = router;
     this.robot = robot;
 }
Esempio n. 7
0
 public RobotGUI(SerialPortWrapper serial, Router.Router router) : base(serial)
 {
     this.router = router;
     base.onRobotStatusChange += new EventHandler(RouterPositionUpdate);
 }
Esempio n. 8
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Lobby"/> class.
        /// </summary>
        /// <param name="name">Name of the new <see cref="Lobby"/>.</param>
        /// <param name="password">Password of the new <see cref="Lobby"/>.</param>
        /// <param name="connectionBroker"><see cref="ConnectionBroker"/> that this <see cref="Lobby"/> should get open connections from.</param>
        /// <param name="router">Router the new <see cref="Lobby"/> should connect to.</param>
        public Lobby(string name, string password, ConnectionBroker connectionBroker, Router.Router router)
        {
            this.Broadcaster = new Broadcaster(connectionBroker);
            this.Id          = router.Register(this);
            this.Name        = name;
            this.Password    = password;
            this.Router      = router;

            this.ResetInactivityTimer();
        }