lobaro-coap icon indicating copy to clipboard operation
lobaro-coap copied to clipboard

TCP support

Open philcaonz opened this issue 5 years ago • 1 comments

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.

philcaonz avatar Mar 29 '19 01:03 philcaonz

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.

niondir avatar Apr 06 '19 07:04 niondir