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

uCX request: IP address any #17

Open
antevir opened this issue Nov 14, 2023 · 0 comments
Open

uCX request: IP address any #17

antevir opened this issue Nov 14, 2023 · 0 comments

Comments

@antevir
Copy link
Owner

antevir commented Nov 14, 2023

When you create a socket in 2nd gen uCX you have to specify uPreferredProtocolType_t (which should also be renamed to uPreferredAddressType_t) which can have the following values:

    U_PREFERRED_PROTOCOL_TYPE_IP_V4, /* IPv4 address. */
    U_PREFERRED_PROTOCOL_TYPE_IP_V6 = 1 /* IPv6 address. */

For ubxlib we need an "any":

    U_PREFERRED_PROTOCOL_TYPE_IP_V4, /* IPv4 address. */
    U_PREFERRED_PROTOCOL_TYPE_IP_V6 = 1 /* IPv6 address. */
    U_PREFERRED_PROTOCOL_TYPE_IP_ANY = 2 /* IPv4 or IPv6 address. */

Check with Tove how it's used. Maybe we have misunderstod how it's used.

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

No branches or pull requests

1 participant