Repository navigation
Rooms by join code over Atyha (ngnet), optional password; no master signalling - #44
Merged
Merged
Conversation
…r signalling common/ngnet moves to d5132ff (ngspades/ngnet#5): a listen server's join code opens the match's room on Atyha's public Nostr relays, browsers join a listed server by WebRTC direct, and the master is a list only. - Online.c: join_code, join_password (SP_JOIN_PASSWORD, from the host's client, never the command line) and room_app go to ngnet; a private listen server is never announced (unlisted), with or without a code; a room's offer has no address yet (ngnet asks again at connect, for bans); the 6-letter code's log line is gone (ngnet logs "Room <code> open"). - Main.c: --join-code is read by ngnet's rule (8 symbols, ngspades://). - libsodium, now a dependency (Atyha): CI (Ubuntu, macOS), the Alpine and MSYS2 release builds and server_deps_macos.sh (1.0.20, static).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces #41, which predates the port onto ngnet (#38): the features now live in ngnet (ngspades/ngnet#5, merged) and this is the server's side.
common/ngnet→ d5132ff: rooms over Atyha's public relays, WebRTC direct for browsers on listed servers, the master as a list only (no long poll, no offers), 8-symbol codes,ngspades://links.Online.c:join_code,join_password(SP_JOIN_PASSWORD),room_app; a private listen server is never announced; a room's offer (no address yet) skips the ban check, which ngnet repeats at connect with the real address.Main.c:--join-codeby ngnet's rule.Checked locally: build (Release), and ngnet's own tests (room with right/wrong password, refusal, direct join, e2e against the list-only master). The full game test (client joins a room, browser joins direct) is in the paired client PR. This PR runs CI.