1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-12-10 20:02:26 +03:00

fix #1002 ::Flush() wait for empty send buffer (#3967)

* fix #1002 ::Flush() wait for empty send buffer

* WiFiClient::Flush() guarantees that the data has been delivered
option 1 of https://github.com/esp8266/Arduino/pull/3967#discussion_r156901071
10ms max wait according to loaded tcp echo/reply scheme
This commit is contained in:
david gauchard
2017-12-17 17:16:41 +01:00
committed by Develo
parent affd1b37b8
commit 26980b39e3
5 changed files with 30 additions and 7 deletions

View File

@@ -49,6 +49,9 @@ private:
uint16_t _remotePort; // remote port for the incoming packet whilst it's being processed
uint16_t _offset; // offset into the packet being sent
uint16_t _remaining; // remaining bytes of incoming packet yet to be processed
protected:
void clear_remaining();
public:
EthernetUDP(); // Constructor