Skip to content

Commit

Permalink
Updated LICENSE year and README
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilm committed Jan 3, 2012
1 parent 3e5ddd8 commit e5a8166
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.