libp2p / go-libp2p-http

HTTP on top of libp2p
MIT License
64 stars 20 forks source link

How do I define a new Host #6

Closed Varunram closed 6 years ago

Varunram commented 6 years ago

Hello there, thanks for the plugin. I have a question for you. In the docs, you mention:

listener, _ := gostream.Listen(host1, p2phttp.P2PProtocol)
...

Say I want to run a listener on /ip4/127.0.0.1/tcp/8001/ipfs/QmQAJJm9JWKQvxqjMH114vBKwhVyP99fVL5AwYLWpbhL6D, how am I supposed to initialise this? Help much appreciated, thanks!

Varunram commented 6 years ago

opened a related issue in the roc repo. Closing this.