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

Add an IdentifyListen behaviour #626

Merged
merged 3 commits into from
Nov 12, 2018
Merged

Conversation

tomaka
Copy link
Member

@tomaka tomaka commented Nov 12, 2018

I forgot to add it in #579
This is the listening side. You set the information ahead of time, and the behaviour automatically handles requests.

@tomaka
Copy link
Member Author

tomaka commented Nov 12, 2018

Hmm, it would be great if the list of supported protocols and the listened addresses were automatic.
I guess this should be done with a different layer, because we need access to the outcome of the periodic identification dialing.

@tomaka tomaka merged commit b3b5a4b into libp2p:master Nov 12, 2018
@tomaka tomaka deleted the identify-listen branch November 12, 2018 16:23
dvdplm added a commit to dvdplm/rust-libp2p that referenced this pull request Nov 14, 2018
…e-handled_node_tasks

* upstream/master:
  Tweaks, spelling and grammar (libp2p#629)
  Add a badge with a link to deps.rs (libp2p#630)
  Rewrite floodsub to use the ProtocolsHandler (libp2p#603)
  Add an IdentifyListen behaviour (libp2p#626)
  Add a custom derive for NetworkBehaviour (libp2p#619)
  Set the maximum size of Mplex messages to 1Mb (libp2p#622)
  Use expect rather than unwrap (libp2p#625)
  Make libp2p-websocket optional (libp2p#624)
  Add From<IpAddr> for Multiaddr (libp2p#623)
  Add implementations of NetworkBehaviour for ping (libp2p#618)
  Add a PeriodicIdentifyBehaviour (libp2p#617)
  Use upstream rust-secp256k1 (libp2p#616)
  Use yamux and aio-limited from crates.io (libp2p#621)
dvdplm added a commit to dvdplm/rust-libp2p that referenced this pull request Nov 14, 2018
…st-collection_stream

* dp/chore/test-core-handled_node_tasks: (24 commits)
  Revert changes to Debug impl for HandledNodesTasks
  whitespace
  Don't organise tests in submodules
  Rename test builders
  Tweaks, spelling and grammar (libp2p#629)
  Add a badge with a link to deps.rs (libp2p#630)
  Rewrite floodsub to use the ProtocolsHandler (libp2p#603)
  Add an IdentifyListen behaviour (libp2p#626)
  Add a custom derive for NetworkBehaviour (libp2p#619)
  Set the maximum size of Mplex messages to 1Mb (libp2p#622)
  Use expect rather than unwrap (libp2p#625)
  Make libp2p-websocket optional (libp2p#624)
  Add From<IpAddr> for Multiaddr (libp2p#623)
  Add implementations of NetworkBehaviour for ping (libp2p#618)
  Add a PeriodicIdentifyBehaviour (libp2p#617)
  Use upstream rust-secp256k1 (libp2p#616)
  Use yamux and aio-limited from crates.io (libp2p#621)
  Remove tests for Task we don't need Test Task.send_event() and id() using a HandledNodesTasks
  Better debug impl for HandledNodesTasks
  Address grumbles
  ...
dvdplm added a commit to dvdplm/rust-libp2p that referenced this pull request Nov 16, 2018
…_swarm

* upstream/master: (33 commits)
  Behavior -> Behaviour (libp2p#650)
  Remove Send/Sync/'static reqs from ping (libp2p#652)
  Tests for CollectionStream (libp2p#588)
  Document the muxing module (libp2p#647)
  Document the core::upgrade module (libp2p#644)
  Send Close when shutting down gracefully, as per spec (libp2p#631)
  Remove the Send + 'static requirements for floodsub (libp2p#637)
  Move protocols_handler to the root (libp2p#643)
  Use a random sequence number in floodsub (libp2p#634)
  Split `ConnectionUpgrade`. (libp2p#642)
  Add an impl Debug for HandledNode (libp2p#628)
  minor typo in docs (libp2p#640)
  Update connected peers' topics on NodeEvent (libp2p#638)
  Fix the concerns of libp2p#603 (libp2p#635)
  Tests for HandledNodesTasks (libp2p#584)
  Tweaks, spelling and grammar (libp2p#629)
  Add a badge with a link to deps.rs (libp2p#630)
  Rewrite floodsub to use the ProtocolsHandler (libp2p#603)
  Add an IdentifyListen behaviour (libp2p#626)
  Add a custom derive for NetworkBehaviour (libp2p#619)
  ...
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

Successfully merging this pull request may close these issues.

2 participants