ESP8266 Developer Zone The Official ESP8266 Forum 2016-04-05T14:06:50+08:00 https://bbs.espressif.com:443/feed.php?f=65&t=1984 2016-04-05T14:06:50+08:00 2016-04-05T14:06:50+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1984&p=6343#p6343 <![CDATA[Re: Reuse connection]]>
If you need to reuse the connection, it is suggest that using socket on ESP8266_RTOS_SDK instead of espconn.

Statistics: Posted by ESP_Faye — Tue Apr 05, 2016 2:06 pm


]]>
2016-04-03T17:09:36+08:00 2016-04-03T17:09:36+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1984&p=6326#p6326 <![CDATA[Reuse connection]]>
i want to reuse a connection after disconnect. In some cases i want to reuse immediately.

Configuration is:
espconn_set_opt(pespconn,ESPCONN_REUSEADDR+ESPCONN_NODELAY);

How can i detect if port is ready for reuse? (to delay if port is not available)

Can you estimate the delay time for port reuse after disconnect callback ? Is 6 seconds realistic ?

Statistics: Posted by SpenZerX — Sun Apr 03, 2016 5:09 pm


]]>