-
Notifications
You must be signed in to change notification settings - Fork 14
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
WIP: Implement CoAP over TCP #177
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## master #177 +/- ##
==========================================
- Coverage 29.91% 27.20% -2.72%
==========================================
Files 62 65 +3
Lines 2811 3084 +273
==========================================
- Hits 841 839 -2
- Misses 1970 2245 +275
☔ View full report in Codecov by Sentry. |
I now actually managed to finish the basic logic for connecting and communicating with a server. There is still some more polish required, though. |
As mentioned in some other PR, I started working on improving the CoAP over TCP implementation, adding the necessary logic for exchanging messages. Connecting to a (plain) TCP server and sending and receiving messages already works.
However, responses cannot be matched to requests yet, since the matching logic has to be slightly adjusted (CoAP over TCP messages don't contain message ID or type fields). Furthermore, the layer stack needs to take into account that resending messages isn't needed for reliable transport. The implementation is also lacking support for signaling messages, which need to be sent at the beginning of an exchange. Lastly, I currently perform three stream transformations in a row for incoming TCP segments, which could probably improved efficiency-wise.
So there is still plenty to do, which I hope to deal with over the next couple of weeks.