You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this is a good idea but I face some situation where I need to handle a coap request OR a coap (separated) response in a same way. This is not too surprising as from a CoAP RFC point of view all request and response are conceptually a CoAP Message.
In my case, I need the remote peer address and the transport context of the message.
See :
OK I get it but my question was more about having a kind of Parent class (e.g. CoapMessage) for CoapRequest, CoapResponse, SeparatedResponse. At first sight (maybe I'm wrong) I think this could make java-coap user code more elegant.
Regarding adding this static method, to be honest, I'm not sure will really makes my user code better. 🤔
Anyway, maybe better to work first on #84 and see if you also need this kind of abstraction in java-coap code too ?
I don't know if this is a good idea but I face some situation where I need to handle a coap request OR a coap (separated) response in a same way. This is not too surprising as from a CoAP RFC point of view all request and response are conceptually a CoAP Message.
In my case, I need the remote peer address and the transport context of the message.
See :
The text was updated successfully, but these errors were encountered: