chrysn / aiocoap

The Python CoAP library
Other
267 stars 120 forks source link

Sharpen remote definition #225

Open chrysn opened 3 years ago

chrysn commented 3 years ago

With #224 being addressed, and the parallel work with group OSCORE, the purpose of remote seems to become a bit clearer -- but that does need to be expressed in the docs.

chrysn commented 3 years ago

As of removing some comments on this topic from the DTLS transports, a client may also want to use a method on a remote like "give me a remote to the same location but a bit relaxed, like do the name resolution again or build a new security context if you need it". It's not certain yet if there's any benefit to this over just putting in the original hostinfo into an UndecidedRemote and letting the specialization process run its course.