Example #1
0
        public LocalHT()
        {
            AHAddress  addr       = new AHAddress(new RNGCryptoServiceProvider());
            Node       brunetNode = new StructuredNode(addr);
            RpcManager rpc        = RpcManager.GetInstance(brunetNode);

            this._ts   = new TableServer(brunetNode);
            this._node = brunetNode;

#if FUSE_DEBUG
            //Having some init data isn't bad
            string key = FuseDhtUtil.GenDhtKey("testbasedir", "testkey1", "ipop_ns");
            this.Put(key, "testvalue1", 5000);
            this.Put(key, "testvalue2", 3000);
#endif
        }