Exemple #1
0
        public static void Start()
        {
            if (Inst != null)
            {
                return;
            }

            Inst = new NetDb();

            if (!Inst.LoadFinished.WaitOne(450000))
            {
                Inst.Terminated = true;
                throw new Exception("NetDb Load did not finish in 450 sec!");
            }
        }
Exemple #2
0
 public IdentResolver(NetDb db)
 {
     db.RouterInfoUpdates     += NetDb_RouterInfoUpdates;
     db.LeaseSetUpdates       += NetDb_LeaseSetUpdates;
     db.DatabaseSearchReplies += NetDb_DatabaseSearchReplies;
 }
Exemple #3
0
 public IdentResolver(NetDb db)
 {
     db.RouterInfoUpdates     += new NetDb.NetworkDatabaseRouterInfoUpdated(NetDb_RouterInfoUpdates);
     db.LeaseSetUpdates       += new NetDb.NetworkDatabaseLeaseSetUpdated(NetDb_LeaseSetUpdates);
     db.DatabaseSearchReplies += new NetDb.NetworkDatabaseDatabaseSearchReplyReceived(NetDb_DatabaseSearchReplies);
 }