Question on Ethernet-Shield / datatypes

Hello, i am new on this forum but have the following problem:

The EthernetServer Object has a "write" Method, which accepts only 1 Byte Arguments, such as char. Sending with that write Method works fine, but results in only one Byte in a TCP-packet, which makes communication slow and produces a lot of IP overhead.

With the "print" Method, whole up to 255 bytes can be send in one packet, but it terminates if a 0 value occurs. Therefore this Method is not suitable for transmitting jpg files e.g.

My question is: How to send more then one byte per tcp packet ???

EthernetServer.write() also supports the form:

size_t EthernetServer::write(const uint8_t *buffer, size_t size)

(from EthernetServer.cpp)

So you can send a byte array.

Thank you very much

can't help wondering, why that feature isn't mentioned in the reference at all ?!

can't help wondering, why that feature isn't mentioned in the reference at all ?!

Are you volunteering? Developing documentation is a thankless job that no one really wants to do or maintain.

The documentation was changed recently for IDE v1.0.1, so there were errors and omissions. They will change it if you submit a request here.
http://code.google.com/p/arduino/
It would be good for you to submit it. It is not difficult.

Here is one I submitted there, and it has been corrected, even tho it shows the status as "started".
http://code.google.com/p/arduino/issues/detail?id=880

edit: It was a bit technical for a new guy, so the request is posted:
http://code.google.com/p/arduino/issues/detail?id=1034
I knew where the functions were in the header files.