in reply to Re: select appears to ignore pending data on socket.
in thread select appears to ignore pending data on socket.
that's what is so troubling, the data does contain several lines of text, each terminating with a newline. i have captured the raw traffic using wireshark (which in turn uses tcpdump), and verified the data is coming in correctly. the data is there, ready and waiting, it just appears that select is not triggering for it.
i have also tried using blocking and non-blocking sockets with no success, i receive the same result regardless of the blocking state.
i had looked at recv, but it appears to receive a sring of data of a set length, unfortunately i do not know the length of each line in advance and i am cautions about reading in too much data to read past the newline and into the start of the next line.
|
|---|