Added a method to close session on specific n/w interface
Status: Alpha
Brought to you by:
obgm
Added a method, dtls_close_interface, to enable closing session on specific network interface. Consider a case where server is connected over ethernet with client1 and over wifi with client2. If server losses wifi connection then it needs to close session with client2 but should not close sessions with client1. To enable this behavior needed a method that closes session with the peer based on the network interface type.
On a device with multiple interfaces, if graceful shutdown happens on a specific interface, application should enable tinydtls to send 'Close Notify' alert message to all the peers available on that interface.
A new method has been added which traverse through the list of available peers and invokes 'dtls_destroy_peer' on them if they are on that specific interface.
After some analysis and discussion, it was deciced that Iotivity stack should not manage the lifetime of IP interfaces and therefore there is no need of this change anymore.
Can we close this ticket?
Closed on request of the ticket creator.