gotthardp / gen_coap

Generic Erlang CoAP Client/Server
Other
106 stars 47 forks source link

Add stop_udp() and stop_dtls() in coap_server.erl #16

Closed grutabow closed 7 years ago

grutabow commented 7 years ago

Add stop_udp() and stop_dtls() API to allow restarting sockets.

In our scenario, restarting gen_coap is a mandatory action. But "application:stop(gen_coap)" does not work. So stop_udp() and stop_dtls() are added.

Is there any way to terminate all children under coap_channel_sup_sup?

gotthardp commented 7 years ago

Looks good, thanks!