Replies: 2 comments 4 replies
-
I believe that accept() is quite useful so I agree with making it standard. What worries me a bit is the non-standard implementation of |
Beta Was this translation helpful? Give feedback.
2 replies
-
Meanwhile, this is a PR to add |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Method server:accept() was introduced by Paul Stoffregen in 2018 version 2 of the Arduino Ethernet library. I think it is a very useful addition.
The esp8266 WiFi library bundled with the esp8266 Arduino core was created in 2014 and method server.available was not implemented as in the Ethernet and WiFi library. Its implementation behaves exactly like Paul's server.accept(). The ESP32 Arduino WiFi library copied this version of available() but added method accept() as alias. Recently esp8266 WiFi library added
accept()
as alias foravailable()
too.Networking libraries by Arduino, with exception of the Ethernet library, don't have
server.accept()
. WiFi and Ethernet libraries made by others haveserver.accept()
, because it is really useful.In WiFiNINA my PR with accept() was approved but it is still not merged. The PR in the nina-fw was merged many months ago. If WiFiNINA gets server.accept(), other Arduino net libraries should have it too. My PR are waiting in WiFi101 and in WiFiS3 libraries.
What is you opinion on
server.accept()
?Beta Was this translation helpful? Give feedback.
All reactions