Skip to content

WiFi and Ethernet library problems. Solutions: #766

Open
@JAndrassy

Description

@JAndrassy

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions