mirror of
https://github.com/esp8266/Arduino.git
synced 2025-12-18 10:22:18 +03:00
prepare lwip2 (#3129)
* minimum changes for libraries to compile with lwip2 * add WiFiClient::availableForWrite() (similar to Serial::) which indicates how much data can be sent without buffering
This commit is contained in:
committed by
Ivan Grokhotkov
parent
a9224266f3
commit
a41f55c469
@@ -124,6 +124,11 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
size_t availableForWrite ()
|
||||
{
|
||||
return _pcb? tcp_sndbuf(_pcb): 0;
|
||||
}
|
||||
|
||||
void setNoDelay(bool nodelay)
|
||||
{
|
||||
if(!_pcb) {
|
||||
|
||||
Reference in New Issue
Block a user