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

feat: support multiple juice_mux_listen callbacks for different ports #292

Conversation

achingbrain
Copy link
Contributor

@achingbrain achingbrain commented Jan 16, 2025

Follow up to #248 that addresses #248 (comment)

Supports multiple callbacks for unhandled STUN requests, one per listening address (e.g. host + port).

Stores multiple registries, one per local listening address in a conn_registry_t **registries; field on conn_mode_entry_t.

The list of registries grows in the same way as the list of agents in conn_mode_entry_t.

Adds an address property to conn_registry_t which is the host+port the registry is bound to, and a registry_index property which is the index of the registry in the containing registries list in conn_mode_entry_t.

Supports multiple callbacks for unhandled STUN requests.

Stores multiple registries, one per local listening port in a
`conn_registry_t **registries;` field on `conn_mode_entry_t`.

The list of registries grows in the same way as the list of
agents in `conn_mode_entry_t`.

Adds a `port` property to `conn_registry_t` which is the port
the registry is bound to, and an `index` property which is the
index of the registry in the containing `registries` list in
`conn_mode_entry_t`.
@achingbrain achingbrain force-pushed the feat/support-multiple-juice_mux_listen-callbacks branch from 23f93a4 to d1893a8 Compare January 20, 2025 08:43
@achingbrain
Copy link
Contributor Author

@paullouisageneau are there any further changes you'd like to see here or is this ready to go in?

Copy link
Owner

@paullouisageneau paullouisageneau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, the implementation moved to mux looks good, I just have a few comments.

@achingbrain
Copy link
Contributor Author

@paullouisageneau All comments addressed!

Copy link
Owner

@paullouisageneau paullouisageneau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, it looks good!

@paullouisageneau paullouisageneau merged commit 424d207 into paullouisageneau:master Feb 14, 2025
3 checks passed
@achingbrain achingbrain deleted the feat/support-multiple-juice_mux_listen-callbacks branch February 14, 2025 13:29
@achingbrain
Copy link
Contributor Author

Thank you for merging this - will it make it into a release soon?

@achingbrain
Copy link
Contributor Author

@paullouisageneau could this please be released? It would be really great to roll it up to paullouisageneau/libdatachannel#1211 and draw a line under all this.

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