2016-04-21 16:18:39 -07:00
2016-04-21 15:56:38 -07:00
2016-04-21 16:14:03 -07:00
2015-09-15 14:42:08 +01:00
2015-09-16 17:43:45 +01:00
2016-04-21 15:21:03 -07:00
2015-09-15 14:42:08 +01:00
2016-03-14 17:02:22 +00:00
2016-04-21 16:18:39 -07:00

js-libp2p-tcp

Build Status Dependency Status js-standard-style

Node.js implementation of the TCP module that libp2p uses, which implements the interface-connection interface for dial/listen.

Description

libp2p-tcp in Node.js is a very thin shim that adds the support to dial to a multiaddr. This small shim will enable libp2p to use other different transports.

Example

outputs

Installation

npm

> npm i libp2p-tcp

API

const Tcp = require('libp2p-tcp')

var tcp = new Tcp()

...

tcp.dial(multiaddr, options)

...

tcp.createListener(multiaddrs, handler, callback)

...

tcp.close(callback)

...

tcp.filter(multiaddrs)

...

License

MIT

Description
No description provided
Readme 1.6 MiB
Languages
JavaScript 100%