Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set of examples #19

Closed
4 tasks
daviddias opened this issue Mar 3, 2016 · 5 comments
Closed
4 tasks

Set of examples #19

daviddias opened this issue Mar 3, 2016 · 5 comments

Comments

@daviddias
Copy link
Member

It would be really helpful, if can get an folder with the following examples:

  • Start two libp2p Nodes (create and make them listen)
  • Set up a handler for a protocol (through multistream)
  • Dial from one Node to the other, when both Nodes have TCP and uTP set up + SPDY (Yamux can be there too)
  • Dial from one Node to the other having set up secio too
@daviddias
Copy link
Member Author

Hey @whyrusleeping

I made an example with the JS version:

https://github.com/ipfs/js-libp2p-ipfs/blob/master/examples/example.js

It is really simple, as all of the work happens underneath. Can we have something similar in Go as well?

@whyrusleeping
Copy link
Contributor

Done!

@hackergrrl
Copy link
Contributor

Where are these?

@whyrusleeping
Copy link
Contributor

Oh, it might make sense to post a link here...

https://github.com/whyrusleeping/libp2p-examples

@hackergrrl
Copy link
Contributor

Awesome! Let's make them discoverable now: could we either a) add these to this repo, or b) link to your examples repo in this repo's readme?

marten-seemann pushed a commit that referenced this issue Apr 22, 2022
This reverts commit af1302a.

If we do this, we end up using the source *port* for dialing. That's not what we
want when not using reuseport.

fixes #19
marten-seemann pushed a commit that referenced this issue Apr 22, 2022
marten-seemann added a commit that referenced this issue Apr 22, 2022
use a single packet conn for all outgoing connections
marten-seemann pushed a commit that referenced this issue Apr 26, 2022
marten-seemann pushed a commit that referenced this issue Apr 26, 2022
improve correctness of closing connections on failure
marten-seemann pushed a commit that referenced this issue Apr 27, 2022
wrap net conns, not transport conns
marten-seemann pushed a commit that referenced this issue May 20, 2022
marten-seemann pushed a commit that referenced this issue Jul 1, 2022
handleCanHop: reset stream on errors
marten-seemann pushed a commit that referenced this issue Aug 17, 2022
fix: serialize publishing
marten-seemann pushed a commit that referenced this issue Aug 17, 2022
Add OpenCensus metrics registration functionality to core
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants