1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

Add API to set the beginning of local ports range for WiFiClient

This commit is contained in:
Ivan Grokhotkov
2015-05-24 23:15:05 +03:00
parent 703cad32f6
commit 49aeb79b05
2 changed files with 8 additions and 0 deletions

View File

@ -61,6 +61,7 @@ public:
uint16_t remotePort();
bool getNoDelay();
void setNoDelay(bool nodelay);
static void setLocalPortStart(uint16_t port) { _localPort = port; }
template<typename T> size_t write(T &src){
uint8_t obuf[1460];
@ -97,6 +98,7 @@ private:
void _err(int8_t err);
ClientContext* _client;
static uint16_t _localPort;
};