ejubenville
Member
I am using a Teensy 3.2 with Wiz820IO in a server/client socket application. Is it possible to force any written data to be immediately transmitted?
My code uses the Arduino (TeensyDuino) Ethernet class, which appears to offer only these three output mechanisms for a client: write(), print(), and println().
The flush() call sounds like it only empties RX buffers, not TX buffers. The stop() would likely send the data immediately, but would also close the socket (I want to keep it open).
There doesn't seem to be any way to tell the driver "I've completed all my outputting, please send it now". Is there a backdoor mechanism in the Wiz820IO to flush the TX buffer?
My code uses the Arduino (TeensyDuino) Ethernet class, which appears to offer only these three output mechanisms for a client: write(), print(), and println().
The flush() call sounds like it only empties RX buffers, not TX buffers. The stop() would likely send the data immediately, but would also close the socket (I want to keep it open).
There doesn't seem to be any way to tell the driver "I've completed all my outputting, please send it now". Is there a backdoor mechanism in the Wiz820IO to flush the TX buffer?