-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(iroh-net): add
MagicEndpoint::conn_type_stream
returns a strea…
…m that reports connection type changes for a `node_id` (#2161) ## Description `MagicEndpoint::conn_type_stream` returns a `Stream` that reports changes for a `magicsock::Endpoint` with a given `node_id` in a `magicsock::NodeMap`. It will error if no address information for that `node_id` exists in the `NodeMap`. This PR also adjusts the `Endpoint::info()` method to use the same `ConnectionType` that gets reported to the stream. ## Change checklist - [x] Self-review. - [x] Documentation updates if relevant. - [x] Tests if relevant.
- Loading branch information
Showing
4 changed files
with
236 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.