예제 #1
0
        /// Initialize NyFolder P2PManager & Network Related
        private static void InitNetwork()
        {
            // Initialize P2PManager
            Debug.Log("Initializing P2P Manager...");
            p2pManager = P2PManager.GetInstance();

            // Initialize Command Manager
            Debug.Log("Initializing Protocol Manager...");
            CmdManager.Initialize();

            // Initialize Download Manager
            Debug.Log("Initializing Download Manager...");
            DownloadManager.Initialize();

            // Initialize Upload Manager
            Debug.Log("Initializing Upload Manager...");
            UploadManager.Initialize();
        }