libp2p-tcpis a very thin shim that adds support for dialing to a
multiaddr. This small shim will enable libp2p to use other different transports.
Table of Contents
> npm install libp2p-tcp
const TCP =const multiaddr =const pull =const mh =const tcp =const listener = tcplistener
listeningnew connection openedValue: hello
libp2p-tcp accepts TCP addresses both IPFS and non IPFS encapsulated addresses, i.e:
Both for dialing and listening.
- Check out the existing issues.
- Perform code reviews.
- Add tests. There can never be enough tests.
Please be aware that all interactions related to libp2p are subject to the IPFS Code of Conduct.
Small note: If editing the README, please conform to the standard-readme specification.
MIT © 2015-2016 David Dias