예제 #1
0
파일: NetDb.cs 프로젝트: glasgowdev/i2p-cs
        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!");
            }
        }
예제 #2
0
 public IdentResolver(NetDb db)
 {
     db.RouterInfoUpdates     += NetDb_RouterInfoUpdates;
     db.LeaseSetUpdates       += NetDb_LeaseSetUpdates;
     db.DatabaseSearchReplies += NetDb_DatabaseSearchReplies;
 }
예제 #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);
 }