1
0
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:
ficeto 2015-05-13 20:01:05 +03:00
parent 3ff7641329
commit 3e7b8515e4
2 changed files with 15 additions and 0 deletions

View File

@ -123,6 +123,19 @@ void ICACHE_FLASH_ATTR WiFiClient::_err(int8_t err)
esp_schedule(); 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) size_t ICACHE_FLASH_ATTR WiFiClient::write(uint8_t b)
{ {
return write(&b, 1); return write(&b, 1);

View File

@ -55,6 +55,8 @@ public:
IPAddress remoteIP(); IPAddress remoteIP();
uint16_t remotePort(); uint16_t remotePort();
bool getNoDelay();
void setNoDelay(bool nodelay);
template<typename T> size_t write(T &src){ template<typename T> size_t write(T &src){
uint8_t obuf[1460]; uint8_t obuf[1460];