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

Local sockets #888

Merged
merged 7 commits into from
Feb 15, 2022
Merged

Local sockets #888

merged 7 commits into from
Feb 15, 2022

Conversation

lmoureaux
Copy link
Contributor

@lmoureaux lmoureaux commented Feb 10, 2022

This PR does two things:

  • Fix the --bind server parameter
  • Implement local sockets and use them to communicate with the server spawned by the client for local games

Code is a bit ugly because Qt doesn't leverage OO programming enough in its QIODevice hierarchy.

@lmoureaux lmoureaux force-pushed the bugfix/local-bind branch 2 times, most recently from f9637af to 4a6b97c Compare February 12, 2022 19:13
@lmoureaux lmoureaux marked this pull request as ready for review February 12, 2022 19:18
@lmoureaux lmoureaux requested a review from zekoz February 12, 2022 19:19
server/sernet.h Outdated Show resolved Hide resolved
This allows to bind the server to a specific address, which is often safer.
Support for this option was broken when porting to Qt sockets.
Local sockets won't trigger any firewall rules.
Local sockets correspond to UNIX domain sockets on UNIX and named pipes on
Windows.  No networking operations are attempted in this case (not event the
UDP announcements), and the server is strictly restricted to serving the
socket.
This support is a bit hidden, it is enabled by using the fc21+local URL scheme.
This looks much less suspicious to the Windows firewall.
As commented in longturn#888, it didn't improve readability -- rather the opposite.
@lmoureaux lmoureaux enabled auto-merge (rebase) February 15, 2022 00:10
@lmoureaux lmoureaux merged commit 4aca5f7 into longturn:master Feb 15, 2022
@lmoureaux lmoureaux deleted the bugfix/local-bind branch February 15, 2022 00:29
lmoureaux added a commit that referenced this pull request Feb 15, 2022
As commented in #888, it didn't improve readability -- rather the opposite.
zekoz added a commit to zekoz/freeciv21 that referenced this pull request Feb 17, 2022
lmoureaux pushed a commit that referenced this pull request Feb 18, 2022
@lmoureaux lmoureaux restored the bugfix/local-bind branch December 27, 2023 03:20
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this pull request Dec 27, 2023
As commented in longturn#888, it didn't improve readability -- rather the opposite.
@lmoureaux lmoureaux mentioned this pull request Dec 27, 2023
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this pull request Dec 27, 2023
As commented in longturn#888, it didn't improve readability -- rather the opposite.
jwrober pushed a commit that referenced this pull request Dec 29, 2023
As commented in #888, it didn't improve readability -- rather the opposite.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants