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

Url accessors #1938

Merged
merged 14 commits into from
Nov 23, 2024
Merged

Url accessors #1938

merged 14 commits into from
Nov 23, 2024

Conversation

gdamore
Copy link
Contributor

@gdamore gdamore commented Nov 22, 2024

fixes #

Note that the above format should be used in your git commit comments.
You agree that by submitting a PR, you have read and agreed to our
contributing guidelines.

the separation of nni_url and nng_url.
This provides safety by ensuring that applications do not
depend on the size or layout of nng_url itself.
The inline parsing will be used internally to avoid some allocations.
We moved some of the tests out of the older Convey framework into
the NUTS framework.
While TCP and UDP port numbers are 16-bits, ZT uses a larger (24-bit)
port number.
This is a step on cleaning up our logic around NNG_OPT_URL.
Copy link

codecov bot commented Nov 22, 2024

Codecov Report

Attention: Patch coverage is 89.93711% with 16 lines in your changes missing coverage. Please review.

Project coverage is 80.97%. Comparing base (ca6cfe3) to head (744f448).
Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
src/core/sockaddr.c 41.66% 7 Missing ⚠️
src/core/listener.c 77.77% 4 Missing ⚠️
src/core/url.c 96.55% 2 Missing ⚠️
src/nng.c 85.71% 2 Missing ⚠️
src/core/dialer.c 92.85% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1938      +/-   ##
==========================================
- Coverage   81.04%   80.97%   -0.08%     
==========================================
  Files          94       94              
  Lines       23951    24015      +64     
  Branches     3187     3192       +5     
==========================================
+ Hits        19412    19445      +33     
- Misses       4464     4497      +33     
+ Partials       75       73       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

This is intended to replace NNG_OPT_URL.
This is done so that we can provide transport specific logic
for URL parsing later (we're going to want this for ZeroTier
for example.)
@gdamore gdamore merged commit 744f448 into main Nov 23, 2024
18 of 19 checks passed
@gdamore gdamore deleted the url-accessors branch November 23, 2024 03:07
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.

1 participant