Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated LICENSE year and README

  • Loading branch information...
commit e5a816683e57741143aa36f07b936877ad7a3f92 1 parent 3e5ddd8
@nikhilm authored
Showing with 10 additions and 7 deletions.
  1. +1 −1  LICENSE
  2. +9 −6 README.md
View
2  LICENSE
@@ -1,4 +1,4 @@
-Copyright (C) 2011 by Nikhil Marathe <nsm.nikhil@gmail.com>
+Copyright (C) 2011-2012 by Nikhil Marathe <nsm.nikhil@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
View
15 README.md
@@ -1,17 +1,20 @@
-Makademlia
+Kademlia
==========
A Kademlia DHT implementation in node, ready to be used as
a distributed data store.
-Install using `npm install makademlia`
+Install using `npm install Kademlia`
Use:
- var dht = require('makademlia')
- dht.connect('existing peer ip', port);
- dht.set('key', data);
+ var dht = require('kademlia')
+ var node = new dht.KNode({ address: 'IP address', port: portNumber });
+ node.connect('existing peer ip', port);
+ node.set('key', data, function(err, data) {
- dht.get('key', function(err, data) {
+ });
+
+ node.get('key', function(err, data) {
// do stuff with data.
});

0 comments on commit e5a8166

Please sign in to comment.
Something went wrong with that request. Please try again.