Beispiel #1
0
        /**
         * Launch the sockets thread and the processing threads
         * */
        public void StartNetwork()
        {
            G2Log.Write("G2Network : Starting network processes ... ");
            process = ProcessingThread.Instance;

            cache = GHubCache.Instance;
            process.Start();
            // start a few connections
            for (int i = 0; i < Settings.PEER_DISPATCH_QUERY; i++)
            {
                ConnectToRandomHub();
            }
        }
Beispiel #2
0
        /**
         * Launch the sockets thread and the processing threads
         * */
        public void StartNetwork()
        {
            G2Log.Write ("G2Network : Starting network processes ... ");
            process = ProcessingThread.Instance;

            cache = GHubCache.Instance;
            process.Start();
            // start a few connections
            for (int i = 0; i < Settings.PEER_DISPATCH_QUERY; i++)
            {
                ConnectToRandomHub();
            }
        }