arduino / nina-fw

Firmware for u-blox NINA W102 WiFi/BT module
133 stars 116 forks source link

server.end() support #90

Open JAndrassy opened 1 year ago

JAndrassy commented 1 year ago

Support for WiFiServer::end in the WiFiNINA library.

In stopServerTcp the CommandHandler has to clear the records for clients closed by the server in end(). But that information is only in the server object so I had to make it available with getSpawnedClient(i).

In WiFiServer.begin the setsockopt SO_REUSEADDR is a standard trick for BSD sockets to allow listen on a port again.