Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public InterfaceModuleLink(NetworkModule netModule)
        {
            _netModule = netModule;

            //            netModule.netQueue.Register(typeof (StartLogin), HandleLoginCommand);
        }
Exemplo n.º 3
0
        public FileModulelLink(NetworkModule netModule)
        {
            _netModule = netModule;

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