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

TCP support #38

Open
philcaonz opened this issue Mar 29, 2019 · 1 comment
Open

TCP support #38

philcaonz opened this issue Mar 29, 2019 · 1 comment

Comments

@philcaonz
Copy link
Contributor

Any thoughts about supporting TCP framing described in rfc8323?

A challenge I feel from my experience of this library so far is that CoAP_onNewPacketHandler expects an entire CoAP message, whereas a TCP being a stream, it may be needed to call CoAP_onNewPacketHandler multiple times to incrementally process a message.

@niondir
Copy link
Member

niondir commented Apr 6, 2019

My first thought is to add another layer that just converts the stream into a "message" which should be possible by parsing only a subset of the message structure. Then you can pass that message down to CoAP_onNewPacketHandler.

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

2 participants