Re: Duplex socket receiving data too fast?



On Wed, 31 Aug 2005 12:45:35 +0100, Pep <pep@xxxxxxxxxxx> wrote:
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!

Is the helper method working on the same thread?

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?

You should probably post your code (both versions the working version and the non-working version), then people will be able to see what is going wrong.


Dan.

--
Daniel Dyer
http://www.dandyer.co.uk
.



Relevant Pages

  • Re: Duplex socket receiving data too fast?
    ... >> central method to a helper method to write a message over the socket then ... > Is the helper method working on the same thread? ... which is less then amount of time taken to return through the ...
    (comp.lang.java.programmer)
  • Duplex socket receiving data too fast?
    ... I have a duplex socket that I write data over and then read the data back ... if I write the data over the socket and then immediately read ... when I have returned back to the original method I attempt to read the data ... time, which is less then amount of time taken to return through the stack, ...
    (comp.lang.java.programmer)