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.cpp: separate global socket_set into client_socket_set and server_socket_set #3780

Merged

Conversation

ManManson
Copy link
Member

Not only this makes it easier to decompose the code better and decouple things, but also it's much easier to read and understand the code, e.g. which functions operate in which context.

Ideally, we would like to completely separate client-side-only and server-side-only code at some point, which would greatly increase maintainability.

Tests: local LAN hosting + joining, leaving MP games.

…d `server_socket_set`

Not only this makes it easier to decompose the code better and
decouple things, but also it's much easier to read and understand
the code, e.g. which functions operate in which context.

Ideally, we would like to completely separate client-side-only
and server-side-only code at some point, which would greatly increase
maintainability.

Tests: local LAN hosting + joining, leaving MP games.

Signed-off-by: Pavel Solodovnikov <[email protected]>
@past-due past-due merged commit 32c4c71 into Warzone2100:master May 1, 2024
37 checks passed
@ManManson ManManson deleted the separate_client_server_socket_sets branch May 2, 2024 07:48
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