Skip to content

voipchat: allow configuring server bind address from cli arguments #109

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

Merged
merged 2 commits into from
Aug 7, 2025

Conversation

madebr
Copy link
Contributor

@madebr madebr commented Oct 23, 2024

This allows you to bind the voipchat server to 127.0.0.1 or ::1.

This change is motivated by the following observations of current voipchat:
When running voipchat --server, it was unclear to what socket the server was bound to.
Also, the following combination failed for me:
server command: ./voipchat --server
clients command: ./voipchat localhost

Only after changing the client command to ./voipchat 127.0.0.1 could I get working voip.

This pr explicitly selects a binding address for the server, so it will never pass NULL to SDLNet_CreateDatagramSocket when creating a server.

Perhaps #85 is related.

@madebr madebr force-pushed the server-bind-address-from-arguments branch from d755aca to 8706803 Compare October 24, 2024 00:02
@sezero
Copy link
Contributor

sezero commented Apr 11, 2025

Is this patch waiting for something? (needs a rebase, btw.)

@madebr madebr force-pushed the server-bind-address-from-arguments branch from 8706803 to b3cafc4 Compare April 12, 2025 17:58
@icculus icculus force-pushed the server-bind-address-from-arguments branch from b3cafc4 to ebc2260 Compare August 7, 2025 04:23
@icculus icculus force-pushed the server-bind-address-from-arguments branch from ebc2260 to fdbf6e6 Compare August 7, 2025 04:25
@icculus
Copy link
Collaborator

icculus commented Aug 7, 2025

This is rebased now and can merge once the builders are happy.

@icculus icculus merged commit 26f8dd2 into libsdl-org:main Aug 7, 2025
5 checks passed
@madebr madebr deleted the server-bind-address-from-arguments branch August 7, 2025 10:12
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.

3 participants