예제 #1
0
            public ServerThreadData(GatewayServer gatewayServer, NetworkDevice device)
            {
                this.gatewayServer = gatewayServer;
                this.device        = device;

                thread = new Thread(new ThreadStart(ConnectionThread));
                thread.Start();
            }
예제 #2
0
        /// <summary>
        /// Releases this Gateway.
        /// </summary>
        public void TearDown()
        {
            if (radar != null)
            {
                radar.TearDown();
                radar = null;
            }

            server.TearDown();
            server = null;

            foreach (ChannelManager cm in channelManagers.Values)
            {
                cm.TearDown();
            }
            channelManagers.Clear();
            channelManagers = null;

            if (app != null)
            {
                app.TearDown();
            }
        }
예제 #3
0
            public ServerThreadData(GatewayServer gatewayServer, NetworkDevice device)
            {
                this.gatewayServer = gatewayServer;
                this.device = device;

                thread = new Thread(new ThreadStart(ConnectionThread));
                thread.Start();
            }
예제 #4
0
 private void PrepareServer()
 {
     server = new GatewayServer(this);
 }
예제 #5
0
        /// <summary>
        /// Releases this Gateway.
        /// </summary>
        public void TearDown()
        {
            if (radar != null)
            {
                radar.TearDown();
                radar = null;
            }

            server.TearDown();
            server = null;

            foreach (ChannelManager cm in channelManagers.Values)
                cm.TearDown();
            channelManagers.Clear();
            channelManagers = null;

            if (app != null)
                app.TearDown();
        }
예제 #6
0
 private void PrepareServer()
 {
     server = new GatewayServer(this);
 }