Re: Stream selectively stopping read?
- From: "Daniel" <DanielV@xxxxxxxxxxxxxxxx>
- Date: Fri, 21 Jul 2006 18:31:10 +0100
I read my buffer and keep reading in for the data length and then on
completing that i check the next 4 bytes for datalength and if that returns
0 then i discard the rest of the buffer until the next receive where i start
again.
Is this wrong?
"Daniel" <DanielV@xxxxxxxxxxxxxxxx> wrote in message
news:upDeI$ArGHA.3604@xxxxxxxxxxxxxxxxxxxxxxx
Hey guys
i have a tcp stream between client and server.
i am finding that when i send data to the server it receives fine then
sends back and client receives fine.
Now if i repeat that it works one more time. Repeat again and the server
continues to receive, the client continues to send but the reply from
server vanishes, the server says it sent it, there are no issues during
send and yet the client does not receive.
Why would this happen on a stream? The server still says the socket is
connected, which it must be for the client to still be sending and
accordingly it is able to reply down that socket. Yet nothing at the
client end.
Even more strangely if i now send a different command to the sevrer that
will go through and the reply from the server is read and handled by the
client?
Any ideas!?
.
- Follow-Ups:
- Re: Stream selectively stopping read?
- From: Alexander Nickolov
- Re: Stream selectively stopping read?
- References:
- Stream selectively stopping read?
- From: Daniel
- Stream selectively stopping read?
- Prev by Date: Re: Stream selectively stopping read?
- Next by Date: Re: Fundamentals question, is this how it works?
- Previous by thread: Re: Stream selectively stopping read?
- Next by thread: Re: Stream selectively stopping read?
- Index(es):
Relevant Pages
|
Loading