arduino-libraries / Ethernet

Ethernet Library for Arduino
http://arduino.cc/
259 stars 264 forks source link

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

Closed agdl closed 8 years ago

agdl commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

From @matthijskooijman on February 14, 2014 9:28

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