Example #1
0
        /// <summary>
        ///   Tworzy modul zarzadzajacy polaczeniami
        /// </summary>
        /// <param name = "netModule"></param>
        public NetworkManager(NetworkModule netModule)
        {
            _netModule = netModule;
            _netQueue = netModule.netQueue;

            _loopback = new LocalPeer(_netModule);
            //_loopback.ObjectReceived += ObjectReceived;
            _userConnectionMap = new UserConnectionMap(_netModule);

            _connectThread = new ConnectThread();

            // _netQueue.Register(typeof (NetworkSend), HandleNetworkSend);

            _networkConnectTimer = new Timer(NextConnect, null, Timeout.Infinite, Timeout.Infinite);
        }
        public InterfaceModuleLink(NetworkModule netModule)
        {
            _netModule = netModule;

            //            netModule.netQueue.Register(typeof (StartLogin), HandleLoginCommand);
        }
        public FileModulelLink(NetworkModule netModule)
        {
            _netModule = netModule;

            _netModule.netQueue.Register(typeof (Send), HandleExternalSend);
        }