mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-05-01 13:32:14 +00:00
Initial Commit
This commit is contained in:
parent
a74aac6e11
commit
b1f7e65f18
@ -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) {
|
||||
|
@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user