Page 1 of 1

TCP Server : Not able to read

Posted: Fri Jun 02, 2017 1:00 pm
by preetam
Hi All,

I am using two sparkfun esp32 thing, one is running TCP server on port 80 and another one is the client.

Client is able to resolve the Hostname and connect to TCP server, it also sends the message.But the server is not able to read.
The connection at the server end is successful but it stops at this command

n = read(clientsock, buf, BUFSIZE-1);

is anybody else facing this issue. If there is any resolution, Please let me know

Re: TCP Server : Not able to read

Posted: Fri Jun 02, 2017 1:08 pm
by kolban
I think we need to look at the code you are using on both the client and the server. Can I suggest that you post both to pastebin.com and post the links to both in a followup post to this thread?