P
Pep
I have a duplex socket that I write data over and then read the data back
but this seems to happen too fast?
Essentially, if I write the data over the socket and then immediately read
the response back from the socket, I have no problems.
However this is not what I need to do. I am attempting to jump from a
central method to a helper method to write a message over the socket then
when I have returned back to the original method I attempt to read the data
in but there is no data to read!
Every time I change the code to read in the same method I did the write in
the application gets the data back but not when I change it back to how it
is intended to work.
The socket is static and I have checked the address etc, between the methods
to ensure that the correct socket is being used, which it is.
It's almost as if the socket only holds the data for a minute amount of
time, which is less then amount of time taken to return through the stack,
then purges the content.
Any ideas why this is happening?
TIA,
Pep.
but this seems to happen too fast?
Essentially, if I write the data over the socket and then immediately read
the response back from the socket, I have no problems.
However this is not what I need to do. I am attempting to jump from a
central method to a helper method to write a message over the socket then
when I have returned back to the original method I attempt to read the data
in but there is no data to read!
Every time I change the code to read in the same method I did the write in
the application gets the data back but not when I change it back to how it
is intended to work.
The socket is static and I have checked the address etc, between the methods
to ensure that the correct socket is being used, which it is.
It's almost as if the socket only holds the data for a minute amount of
time, which is less then amount of time taken to return through the stack,
then purges the content.
Any ideas why this is happening?
TIA,
Pep.