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

Merge branch 'esp8266' of https://github.com/ficeto/Arduino into ficeto-esp8266

This commit is contained in:
Ivan Grokhotkov
2015-05-12 20:46:57 +03:00
5 changed files with 127 additions and 12 deletions

View File

@ -98,7 +98,18 @@ class ClientContext {
delete this;
}
}
void setNoDelay(bool nodelay){
if(!_pcb) return;
if(nodelay) tcp_nagle_disable(_pcb);
else tcp_nagle_enable(_pcb);
}
bool getNoDelay(){
if(!_pcb) return false;
return tcp_nagle_disabled(_pcb);
}
uint32_t getRemoteAddress() {
if(!_pcb) return 0;