Reuse connection

SpenZerX
Posts: 41
Joined: Thu Apr 16, 2015 9:30 pm
Location: Germany
Contact:

Reuse connection

Postby SpenZerX » Sun Apr 03, 2016 5:09 pm

Hi,

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 ?

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Reuse connection

Postby ESP_Faye » Tue Apr 05, 2016 2:06 pm

Hi,

If you need to reuse the connection, it is suggest that using socket on ESP8266_RTOS_SDK instead of espconn.

Who is online

Users browsing this forum: No registered users and 1 guest