Initial Commit

This commit is contained in:
David Dias 2015-07-08 16:23:03 -07:00
parent a74aac6e11
commit b1f7e65f18
2 changed files with 5 additions and 10 deletions

View File

@ -32,9 +32,7 @@ exports.inquiry = function (spdyConnection, cb) {
}
// peer asking which pairs ip:port does the other peer see
exports.whoAmI = function () {
}
exports.whoAmI = function () {}
exports.start = function (peerSelf) {
swarm.registerHandle('/ipfs/identify/1.0.0', function (ds) {

View File

@ -14,7 +14,6 @@ var handles = []
// set the listener
exports.listen = function () {
tcp.createServer(function (socket) {
var ms = new Select()
ms.handle(socket)
@ -63,7 +62,6 @@ exports.openStream = function (peer, protocol, cb) {
// If no connection open yet, open it
if (!connections[peer.id.toB58String()]) {
// Establish a socket with one of the addresses
var gotOne = false
async.eachSeries(peer.multiaddrs, function (multiaddr, callback) {
@ -158,4 +156,3 @@ function registerHandles (spdyStream) {
msH.addHandler(handle.protocol, handle.func)
})
}