To the connectivity abstraction developers,

I have been spot reviewing some of the implementation of the connectivity 
abstraction. I have a question.

Is the token that is used in CoAP is passed through the connectivity 
abstraction? I ask because a lot of the code treats it as a NULL-terminated 
string which would be dangerously wrong if CoAP token == CAToken_t.

In any case, the use of a token as a method of tying request to response is 
very CoAP specific. Using a token to tie request to response in a connectivity 
abstraction is reasonable approach but as an API it is less common than based 
on request handle or callback/callback_arg, for instance.

Patrick Lankswert

Intel Corporation
Platform Engineering Group (PEG) / Communications and Devices Group (CDG)
Engineering Manager
Louisville, KY, USA

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150119/c1e6164b/attachment.html>

Reply via email to