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

socket: simplify, make SocketSet private. #571

Merged
merged 6 commits into from
Nov 26, 2021
Merged

socket: simplify, make SocketSet private. #571

merged 6 commits into from
Nov 26, 2021

Conversation

Dirbaio
Copy link
Member

@Dirbaio Dirbaio commented Nov 24, 2021

This completes the work started in #557.

Since Interface now owns the sockets, SocketSet is now an implementation detail, so it is made private.

Also SocketMeta is moved from each socket to the SocketSet. SocketMeta is arguably an Interface implementation detail as well, mainly used for neighbor discovery. it also reduces a bit of code duplication.

@Dirbaio Dirbaio force-pushed the socket-refactor branch 3 times, most recently from 71ac219 to 0e2c2f6 Compare November 25, 2021 20:54
@Dirbaio Dirbaio marked this pull request as ready for review November 25, 2021 20:58
@Dirbaio Dirbaio changed the title socket: move meta from XxxSocket to Socket. socket: simplify, make SocketSet private. Nov 25, 2021
@Dirbaio Dirbaio mentioned this pull request Nov 25, 2021
@Dirbaio
Copy link
Member Author

Dirbaio commented Nov 26, 2021

bors r+

@bors
Copy link
Contributor

bors bot commented Nov 26, 2021

Build succeeded:

@bors bors bot merged commit 7d633aa into master Nov 26, 2021
@bors bors bot deleted the socket-refactor branch November 26, 2021 19:37
bors bot added a commit that referenced this pull request Dec 4, 2021
573: Simpler rand r=Dirbaio a=Dirbaio

Requires #571 

Revisits #547, because it turns out the `rand_custom_impl!` macro stuff was less nice than I thought. It's now a simple PRNG owned by Interface. The builder allows setting the random seed.

Co-authored-by: Dario Nieuwenhuis <[email protected]>
Co-authored-by: Thibaut Vandervelden <[email protected]>
Co-authored-by: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant