[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cf-dev] Californium CoAP client question
|
As I said before, for plain CoAP there is nothing to disconnect. For DTLS connections you can use DTLSConnector.close(InetSocketAddress) to terminate a DTLS session with a given peer. This results in all session keys etc being deleted and a TLS CLOSE_NOTIFY message being sent to the peer.
Hi Kai,
Thanks for the response. I was looking to do it for both non and secure connections. So is there a way to "disconnect" a device or close session using DTLS?
Thanks,
Alejo
Hi Alejo,
not sure what you expect such a close to achieve. Since CoAP runs over UDP there is no "connection" per se being established as with TCP. Thus, when using plain CoAP there is no need for closing a connection. However, if you run CoAP over DTLS, e.g. when using a URI like "coaps://...") then you might be interested in closing the (logical) DTLS session that the CoapClient has established with the server. Is that what you're looking for?
Kai
Hi guys,I have the following concern.How can I do to unregister (or disconnect) a device from a CoAP client.I'm initializing it like coapClient = new CoapClient(...).Does the client have something like a "disconnect/close" method?Thanks! Alejo
_______________________________________________
cf-dev mailing list
cf-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cf-dev
_______________________________________________
cf-dev mailing list
cf-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cf-dev
_______________________________________________
cf-dev mailing list
cf-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cf-dev