-
-
Notifications
You must be signed in to change notification settings - Fork 114
Add support for V3 tunnels #845
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
Open
11EJDE11
wants to merge
47
commits into
CnCNet:develop
Choose a base branch
from
11EJDE11:new-v3-tunnels
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,288
−243
Open
Changes from 39 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
66c9063
Bump cncnet protocol version
11EJDE11 ac9a9b3
Add UseLegacyTunnels and UseDynamicTunnels settings
11EJDE11 94a006b
Add check for tunnelling method when receiving game broadcasts
11EJDE11 732152e
Allow displaying and selecting V3 tunnels in TunnelListBox
11EJDE11 787eec3
Update ping text in GameInformationPanel when dynamic tunnels are ena…
11EJDE11 9127d7f
Allow lobbies to be created with V3 tunnels
11EJDE11 8f9e69d
Fix null ping crash when hosted game uses dynamic tunnels
11EJDE11 0f85089
Add V3PlayerInfo
11EJDE11 bff149e
Add tunnel version to /tunnelinfo chatbox command
11EJDE11 515a38a
Separate out negotiation status information into new file
11EJDE11 ab92b94
Update lobby ping indicators
11EJDE11 10628a0
Merge NEGSTAT and NEGPNG CTCP messages > NEGINFO
11EJDE11 17a7f88
Reset pings on TunnelModeChange
11EJDE11 b455845
Change to ping distinct IPs and update others
11EJDE11 5733cf1
Remove debug call
11EJDE11 eddf60d
Rename files
11EJDE11 c2da73d
Add final ping to the tunnel choice packet send to non-decider
11EJDE11 f7e442a
Rearrange some functions
11EJDE11 fa4b6e7
Prevent duplicate complete messages
11EJDE11 34c49f6
Increase timeout
11EJDE11 3f4269b
Merge branch 'develop' into new-v3-tunnels
11EJDE11 caf9f1e
Add nullable to various files
11EJDE11 8cb2735
Fix ping check
11EJDE11 288f91e
Remove unnecessary if statement
11EJDE11 8ff6d06
Fix nullable issues
11EJDE11 1723234
Fix endianness
11EJDE11 80f4769
More nullable fixups
11EJDE11 aba4aad
More nullable fixups
11EJDE11 7752275
Store pings as PingValue record instead of integers
11EJDE11 a577951
Update TunnelInfo lobby command
11EJDE11 65f168f
Merge remote-tracking branch 'origin/develop' into new-v3-tunnels
11EJDE11 24366a9
Merge remote-tracking branch 'origin/develop' into new-v3-tunnels
11EJDE11 c849e5a
Fix negotiator leak
11EJDE11 43a0339
Update early selection threshold
11EJDE11 bae1fdd
Fix comment
11EJDE11 1e9333f
Temp test
11EJDE11 5ea8ac0
Undo temp change
11EJDE11 dd5f5e5
Merge with develop
11EJDE11 98442ba
Merge branch 'develop' into new-v3-tunnels
11EJDE11 c8f8d0f
Fix header alignment in negotiation status panel
11EJDE11 9dd924e
Update protocol revision to shave off 4 bytes
11EJDE11 0133a03
Add summary comments
11EJDE11 5b9f62b
Add exception when requesting negotiation status between same player
11EJDE11 8508ca0
Change FromMS to conditional expression
11EJDE11 45b19b5
Avoid unnecessary task creation
11EJDE11 df9e132
Fix formatting, spelling, and grammar
11EJDE11 f051920
Use icons for negotiation status instead of chat messages
11EJDE11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -141,6 +141,9 @@ protected UserINISettings(IniFile iniFile) | |
| MapSortState = new IntSetting(iniFile, MULTIPLAYER, "MapSortState", (int)SortDirection.None); | ||
| SearchAllGameModes = new BoolSetting(iniFile, MULTIPLAYER, "SearchAllGameModes", false); | ||
|
|
||
| UseLegacyTunnels = new BoolSetting(iniFile, MULTIPLAYER, "UseLegacyTunnels", false); | ||
| UseDynamicTunnels = new BoolSetting(iniFile, MULTIPLAYER, "UseDynamicTunnels", true); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since these are mutually exclusive, making a single enum based (integer or string) |
||
|
|
||
| CheckForUpdates = new BoolSetting(iniFile, OPTIONS, "CheckforUpdates", true); | ||
|
|
||
| PrivacyPolicyAccepted = new BoolSetting(iniFile, OPTIONS, "PrivacyPolicyAccepted", false); | ||
|
|
@@ -238,6 +241,9 @@ protected UserINISettings(IniFile iniFile) | |
| public BoolSetting SteamIntegration { get; private set; } | ||
| public BoolSetting AllowGameInvitesFromFriendsOnly { get; private set; } | ||
|
|
||
| public BoolSetting UseLegacyTunnels { get; private set; } | ||
| public BoolSetting UseDynamicTunnels { get; private set; } | ||
|
|
||
| public BoolSetting NotifyOnUserListChange { get; private set; } | ||
|
|
||
| public BoolSetting DisablePrivateMessagePopups { get; private set; } | ||
|
|
||
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could save a character from GameSurge traffic by using alphabetics for the number instead.
RFfor example. We could also drop theRto save two bytes - it used to be short forRampastringto differentiate my protocol from Funky's client, but I don't think that's a major consideration anymore.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9dd924e