Skip to content

feat: Allow specifying a different listen address in the adapter (1.0.0) #1607

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 7 commits into from
Jan 26, 2022

Conversation

simon-lemay-unity
Copy link
Contributor

MTT-1902

This is a backport of PR #1605 to release/1.0.0.

Changelog

com.unity.netcode.adapter.utp

  • Added: A new 'Server Listen Address' field under 'Connection Data' in the inspector has been added to specify the address a server should listen to, in case it differs from the main 'Address' field. The SetConnectionData method has been updated accordingly to take an optional parameter to specify that listen address.
  • Changed: Implicit conversions between ConnectionAddressData and NetworkEndPoint are now deprecated, since their semantics are no longer clear with the introduction of the new ServerListenAddress field (see above).

(A note on the deprecation above: I would be exceedingly surprised if these were actually used by any user. They were only used to convert to/from the UTP NetworkEndPoint type internally to make the code "cleaner". Unfortunately they are public, so proper deprecation is in order.)

Testing and Documentation

  • Includes integration tests.
  • AFAIK, no documentation changes or additions are necessary.

@0xFA11 0xFA11 merged commit 5344c18 into release/1.0.0 Jan 26, 2022
@0xFA11 0xFA11 deleted the feat-1.0.0/listen-address-adapter branch January 26, 2022 20:27
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