Skip to content

Commit

Permalink
pull get/set NoDelay for WiFiClient
Browse files Browse the repository at this point in the history
  • Loading branch information
ficeto authored and ficeto committed May 13, 2015
1 parent 6c6420e commit e518425
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ class WiFiClient : public Client {

IPAddress remoteIP();
uint16_t remotePort();
bool getNoDelay();
void setNoDelay(bool nodelay);

template<typename T> size_t write(T &src){
uint8_t obuf[1460];
Expand Down

0 comments on commit e518425

Please sign in to comment.