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.
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.