arduino-esp32/libraries/WiFi/src
Tim 29455a0447
Fix issue #5507 "Constructor WebServer::WebServer(IPAddress addr, int… (#5509)
* Fix issue #5507 "Constructor WebServer::WebServer(IPAddress addr, int port) produces an unexpected result"

"The class Webserver is declared with two explicit constructors, one with signature:
WebServer::WebServer(IPAddress addr, int port)
Using this results in a server listening on the port number obtained by converting the value of the IPAddress addr argument (in host byte order) to a uint32_t and then to a uint16_t, which is manifestly not the result that would be expected.
...
As for a fix, we can assume from these results that this constructor is not being used and therefore could simply be deleted."

* Issue 5507
Reverse changes in commit bee1e7088cef913391155f096b42cd4bb89c5c6f after discussion.
Alternative fix to be done.

* Fix issue #5507 "Constructor WebServer::WebServer(IPAddress addr, int port) produces an unexpected result"

This change adds support for multi-homed servers to libraries/WiFi.  It was assumed to be there already by libraries/WebServer, but was not.
This led to unexpected results when the IP address-specific constructor of class WebServer was used (see issue 5507).

This change was tested using three concurrent instances of WebServer, one bound to the WiFi station address, one bound to the WiFi soft AP address,
and one bound to INADDR_ANY.  See libraries/WebServer/examples/MultiHomedServers for the test method.

* Fix issue #5507 "Constructor WebServer::WebServer(IPAddress addr, int port) produces an unexpected result" (cont.)
This fixes what I think might be the cause of CI failures on GitHub for the previous commit, namely the absence of an include file
in examples/MultiHomedServers.

* Fix issue #5507 "Constructor WebServer::WebServer(IPAddress addr, int port) produces an unexpected result" (cont.)

Change port numbers in examples/MultiHomedServers per pull-request comment from me-no-dev ...
"for this test to be valid, both servers should be on the same port. That is how you can make sure that the functionality works."
2021-08-23 15:51:06 +03:00
..
ETH.cpp Enable clock output for Ethernet RMII on ESP32 (#5274) 2021-06-16 20:45:20 +03:00
ETH.h Enable clock output for Ethernet RMII on ESP32 (#5274) 2021-06-16 20:45:20 +03:00
WiFi.cpp v2.0.0 Add support for ESP32S2 and update ESP-IDF to 4.4 (#4996) 2021-04-05 14:23:58 +03:00
WiFi.h Separate Provisioning library from WiFi library (#4547) 2020-11-19 00:12:16 +02:00
WiFiAP.cpp IDF master d93887f9f (#5336) 2021-07-17 01:57:49 +03:00
WiFiAP.h Add FTM support and examples (#5272) 2021-06-16 21:24:48 +03:00
WiFiClient.cpp Increase default timeout for WiFiClient from 3ms to 3s (#5496) 2021-08-11 14:17:38 +03:00
WiFiClient.h Fix HTTP Client with SSL (#3216) 2019-09-16 19:14:32 +03:00
WiFiGeneric.cpp Fix WiFi Deinit bug 2021-08-02 14:57:55 +03:00
WiFiGeneric.h Add FTM support and examples (#5272) 2021-06-16 21:24:48 +03:00
WiFiMulti.cpp Fix wrong password same SSID (#5124) 2021-06-10 13:19:58 +03:00
WiFiMulti.h Cleanup WiFiMulti (#2955) 2019-07-09 19:21:01 +03:00
WiFiScan.cpp v2.0.0 Add support for ESP32S2 and update ESP-IDF to 4.4 (#4996) 2021-04-05 14:23:58 +03:00
WiFiScan.h Added the channel parameter to the scan fucntion in order to select which channel to scan. (#3638) 2020-01-20 16:13:10 +02:00
WiFiServer.cpp Fix issue #5507 "Constructor WebServer::WebServer(IPAddress addr, int… (#5509) 2021-08-23 15:51:06 +03:00
WiFiServer.h Fix issue #5507 "Constructor WebServer::WebServer(IPAddress addr, int… (#5509) 2021-08-23 15:51:06 +03:00
WiFiSTA.cpp IDF master d93887f9f (#5336) 2021-07-17 01:57:49 +03:00
WiFiSTA.h Fix some WiFi issues (#5395) 2021-07-16 14:48:57 +03:00
WiFiType.h v2.0.0 Add support for ESP32S2 and update ESP-IDF to 4.4 (#4996) 2021-04-05 14:23:58 +03:00
WiFiUdp.cpp Memory leak (#1672) 2018-07-25 12:56:41 +02:00
WiFiUdp.h Add Server and UDP and fix WiFi.hostByName 2016-12-30 02:44:45 +02:00