Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

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

Open matthijskooijman opened this issue 12 years ago • 5 comments

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

matthijskooijman avatar Nov 25 '13 17:11 matthijskooijman

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.

matthijskooijman avatar Nov 26 '13 09:11 matthijskooijman

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

matthijskooijman avatar Feb 14 '14 09:02 matthijskooijman

This issue was moved to arduino-libraries/Ethernet#35

agdl avatar Jul 12 '16 14:07 agdl

Sorry closed by mistake

agdl avatar Jul 12 '16 14:07 agdl

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Apr 09 '21 13:04 CLAassistant