mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-25 20:02:37 +03:00
pull get/set NoDelay for WiFiClient
This commit is contained in:
parent
3ff7641329
commit
3e7b8515e4
@ -123,6 +123,19 @@ void ICACHE_FLASH_ATTR WiFiClient::_err(int8_t err)
|
||||
esp_schedule();
|
||||
}
|
||||
|
||||
|
||||
void ICACHE_FLASH_ATTR WiFiClient::setNoDelay(bool nodelay) {
|
||||
if (!_client)
|
||||
return;
|
||||
_client->setNoDelay(nodelay);
|
||||
}
|
||||
|
||||
bool ICACHE_FLASH_ATTR WiFiClient::getNoDelay() {
|
||||
if (!_client)
|
||||
return false;
|
||||
return _client->getNoDelay();
|
||||
}
|
||||
|
||||
size_t ICACHE_FLASH_ATTR WiFiClient::write(uint8_t b)
|
||||
{
|
||||
return write(&b, 1);
|
||||
|
@ -55,6 +55,8 @@ public:
|
||||
|
||||
IPAddress remoteIP();
|
||||
uint16_t remotePort();
|
||||
bool getNoDelay();
|
||||
void setNoDelay(bool nodelay);
|
||||
|
||||
template<typename T> size_t write(T &src){
|
||||
uint8_t obuf[1460];
|
||||
|
Loading…
x
Reference in New Issue
Block a user