Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork219
Description
The MbedClient is not copyable. There is an attempt to make it survive one copy right after creation, which should work for returning a copy from server.available() but that is not good enough.
I have a simple fix for the copyability of Client. It just have to test it thoroughly yet. PR#768
The MbedServer doesn't manage connected clients as it should for proper implementation of available and print-to-all-clients.available() here works like Ethernet library'saccept() and print-to-all-clients attempts to send a buffer with the listening socket which is not supported in Mbed/LwIP.
I can fix MbedServer too, but in which way? Implementavailable() and print-to-all-clients? It would breakavailable() for users which already use it as it is? Just renameavailable() toaccept() and addavailable() as a deprecated alias toaccept()? And then even remove inheritance from Server/Print and the write methods, or just leave them with empty implementation?