TCP-Server and client connection
Posted: Tue Mar 03, 2015 4:24 am
Hello,
i have created an TCP-Server with function espconn_accept. Callbacks are installed. Everything is working. New Connections are detected (New Connection Callback) and answered.
Now i want to start an extra client connection for submitting information from a queue to an other server.
The TCP-Server should not stop its work.
Whats the best way to do this?
Simply call function Connect? (gives error -15 (in use)) Should then rise Connected Callback for this client connection? Is it allowed to call Connect when in Server Mode with espconn_accept?
Or is it required to create new structures ESPCONN & ESP_TCP and than make a complete new Connection for the client-connection task?
i have created an TCP-Server with function espconn_accept. Callbacks are installed. Everything is working. New Connections are detected (New Connection Callback) and answered.
Now i want to start an extra client connection for submitting information from a queue to an other server.
The TCP-Server should not stop its work.
Whats the best way to do this?
Simply call function Connect? (gives error -15 (in use)) Should then rise Connected Callback for this client connection? Is it allowed to call Connect when in Server Mode with espconn_accept?
Or is it required to create new structures ESPCONN & ESP_TCP and than make a complete new Connection for the client-connection task?