Skip to content

Let EthernetServer::write return the number of bytes written to any client #35

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

Closed
agdl opened this issue Jul 12, 2016 · 2 comments
Closed
Assignees

Comments

@agdl
Copy link
Member

agdl commented Jul 12, 2016

From @matthijskooijman on November 25, 2013 17:44

Before, it would return the sum of the number of bytes written to all
clients, which makes it hard for a caller to find out the length of an
object printed (e.g., for alignment purposes). On the flipside, the
return value is now slightly less useful to detect connection errors,
but if really needed, something different should probably be implemented
anyway.

This change was discussed here:
http://comments.gmane.org/gmane.comp.hardware.arduino.devel/1928
http://forum.arduino.cc/index.php?topic=185835.0

Copied from original issue: arduino/Arduino/pull/1699

@agdl
Copy link
Member Author

agdl commented Jul 12, 2016

From @matthijskooijman on November 26, 2013 9:51

Btw, this pullreq is for 1.5, but the same patch applies unmodified to 1.0. I'm happy to supply another pullreq for that if that helps.

@agdl
Copy link
Member Author

agdl commented Jul 12, 2016

From @matthijskooijman on February 14, 2014 9:28

Any chance this could be merged? Or is there anything blocking this?

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

2 participants