aboutsummaryrefslogtreecommitdiff
path: root/libraries/Ethernet/Server.h
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2009-04-26 13:10:34 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2009-04-26 13:10:34 +0000
commit0681fc1f177f7c94b4e98bb0931a5efda50f32b0 (patch)
tree2174000a919ea016385dac3cdb482ce2d21fee9f /libraries/Ethernet/Server.h
parenta42326aba2fd9696a4b2e1239a5a222014056ff5 (diff)
Adding write(str) and write(buf, size) methods to Print class and Ethernet library Client and Server classes. This allows sending a whole string or buffer at once, reducing the number of ethernet packets.
Diffstat (limited to 'libraries/Ethernet/Server.h')
-rw-r--r--libraries/Ethernet/Server.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libraries/Ethernet/Server.h b/libraries/Ethernet/Server.h
index d35e691..73d6a5e 100644
--- a/libraries/Ethernet/Server.h
+++ b/libraries/Ethernet/Server.h
@@ -18,6 +18,8 @@ public:
Client available();
void begin();
virtual void write(uint8_t);
+ virtual void write(const char *str);
+ virtual void write(const uint8_t *buf, size_t size);
};
#endif