ESP8266 Developer Zone The Official ESP8266 Forum 2015-09-23T10:48:07+08:00 https://bbs.espressif.com:443/feed.php?f=66&t=1142 2015-09-23T10:48:07+08:00 2015-09-23T10:48:07+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1142&p=3812#p3812 <![CDATA[Poor name: espconn_accept]]>
So where then did the "accept" name come from? The answer is that in sockets API there is a partner function called "accept". When executed against a socket that has previously had "listen" called against it, what it does is block until a partner actually attempts to connect. In the ESP8266, there is no equivalent. Instead, after "espconn_accept" is called, the ESP8266 immediately starts listening and when a partner connects, we wake up in the connect callback. So ... is "espconn_accept" a sockets "listen()" call or a sockets "accept()" call? My mind says that it is MUCH closer to a "listen()" call.

Statistics: Posted by kolban — Wed Sep 23, 2015 10:48 am


]]>