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

netplay, netsocket: pass references to sockets wherever possible #3729

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

ManManson
Copy link
Member

@ManManson ManManson commented Apr 10, 2024

This PR shouldn't change any existing behavior. It's mostly enhancements directed towards having safer APIs, i.e.:

Pass references instead of pointers to sockets wherever possible. This is more self-documenting than having a pointer signature with non-null annotation, and is harder to misuse.

Signed-off-by: Pavel Solodovnikov [email protected]

@ManManson ManManson force-pushed the netplay_minor_refactoring_3 branch from 3a0ff61 to 646d6e2 Compare April 15, 2024 06:58
@ManManson ManManson changed the title netplay, netsocket: pass references to sockets wherever possible, allocate sockets as unique_ptr:s netplay, netsocket: pass references to sockets wherever possible Apr 15, 2024
@ManManson
Copy link
Member Author

Removed unique_ptr change from the PR.

@past-due past-due merged commit e68a337 into Warzone2100:master Apr 19, 2024
37 checks passed
@ManManson ManManson deleted the netplay_minor_refactoring_3 branch April 23, 2024 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants