-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: replace
Endpoint
addr
/id
getters
Rather than `Endpoint` having getters for `addr` (`get_socket_addr_by_id`) and `id` (`get_connection_id`) there are now only getters for `Connection`, either by `addr` (`get_connection_by_addr`) or by `id` (`get_connection_by_id`). For now this mostly adds indirection for callers, who can call `Connection::id` or `Connection::remote_address` on the result to achieve the same outcome as before. BREAKING CHANGE: `Endpoint::get_connection_id` and `Endpoint::get_socket_addr_by_id` have been removed. `Endpoint::get_connection_by_addr` and `Endpoint::get_connection_by_id` can be used instead to get a `Connection`, from which the `id` or `remote_address` can be retrieved.
- Loading branch information
Showing
3 changed files
with
13 additions
and
9 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