Hi Gregor,
I am trying out xSocket (v2.5.3) and came across a problem. I have
implemented a simple server to handle reading multipart data and
responding with a "ACK". The example is based from the tutorial under
item 17.
For the client, I just implement with ordinary sockets (no xsocket or
nio) that writes the multipart data and reads a "ACK" string from the
server over data streams. The server is able to receive data but the
client is not receiving the "ACK". Sometimes, it comes in a burst. It
seems the client is not blocking at the read() when there is no data.
How would I block a non-xSocket and non-nio client at the read() when
there is no data to read yet?
Thanks for your help.
Johnny
|