Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WiFi and Ethernet library problems. Solutions: #766

Open
JAndrassy opened this issue Nov 21, 2023 · 0 comments
Open

WiFi and Ethernet library problems. Solutions: #766

JAndrassy opened this issue Nov 21, 2023 · 0 comments

Comments

@JAndrassy
Copy link
Contributor

JAndrassy commented Nov 21, 2023

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.

Issues:
#753
#715

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's accept() 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? Implement available() and print-to-all-clients? It would break available() for users which already use it as it is? Just rename available() to accept() and add available() as a deprecated alias to accept()? And then even remove inheritance from Server/Print and the write methods, or just leave them with empty implementation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant