Issue with my TCP server
Posted: Mon Jun 08, 2015 6:45 pm
I'm experimenting with a TCP server which is almost working. Using telnet, my server accepts a connection on port 80. However, when I send text to the server (by typing a line in telnet) the callback set up with espconn_regist_recvcb() isn't invoked. I also have callbacks for disconnect, reconnect, data sent and write finish but none of them get invoked either.
The registration of the connect callback is done just before the call to espconn_accept() and the remaining callbacks are registered in the connect callback. Is this the correct sequence? Is there anything else I'm missing.
As an aside, I have both TCP and UDP clients working without any problems so I know that I'm doing at least some things correctly.
Don Kinzer
The registration of the connect callback is done just before the call to espconn_accept() and the remaining callbacks are registered in the connect callback. Is this the correct sequence? Is there anything else I'm missing.
As an aside, I have both TCP and UDP clients working without any problems so I know that I'm doing at least some things correctly.
Don Kinzer