Exemple #1
0
        public int Initialize(Cryptography ex_cryptography, FileTransfering ex_filetransfering, FileSystem ex_filesystem, UDPServer ex_server, GetLogic ex_getlogic, Transactions ex_transactions, bool ex_debug)
        {
            cryptography    = ex_cryptography;
            debug           = ex_debug;
            filesystem      = ex_filesystem;
            filetransfering = ex_filetransfering;
            getlogic        = ex_getlogic;
            server          = ex_server;
            transactions    = ex_transactions;

            //window.WriteLine("class Blocks: initialized");
            return(1);
        }
Exemple #2
0
        public int Initialize(UDPServer main_server, FileSystem main_directory, FileTransfering main_filetransfering, Cryptography main_cryptography, Blocks main_blocks, Transactions main_transactions, Updating main_update, GetLogic ex_getlogic, AdminClass main_admin, bool main_debug)
        {
            debug        = main_debug;
            directory    = main_directory;
            cryptography = main_cryptography;
            update       = main_update;
            admin        = main_admin;
            blocks       = main_blocks;
            transactions = main_transactions;
            getlogic     = ex_getlogic;
            adminlogic   = new AdminLogic(directory, socket, window, update, admin);

            //window.WriteLine("class UDPServer: initialized");
            return(1);
        }