Re: Socket receive question
- From: "Ivar" <ivx@xxxxxxxxxxx>
- Date: Mon, 6 Nov 2006 17:20:38 +0200
Hi,
Nope, you maust call Recieve while you get all data, as many times it needs.
Receive block only if no data available, till there is some data. But you
never be sure how many you will recieve, so you need to check SizeReceived.
"Ole" <ole@xxxxxxxxxx> wrote in message
news:e1TzUXbAHHA.4024@xxxxxxxxxxxxxxxxxxxxxxx
Hi
I'm receiving data from another device that sends data in packages of
8000. In my application I use this code to receive the data:
SizeReceived = MySocket.Receive(Buffer, 8000, SocketFlags.None);
But the receive-method sometimes returns after reading 4378 bytes?? Isn't
it so that the Socket.receive method should block until all the data is
received?
Thanks,
Ole
.
- Follow-Ups:
- Re: Socket receive question
- From: Ole
- Re: Socket receive question
- References:
- Socket receive question
- From: Ole
- Socket receive question
- Prev by Date: Re: debuging in C#
- Next by Date: Re: Socket receive question
- Previous by thread: Socket receive question
- Next by thread: Re: Socket receive question
- Index(es):
Relevant Pages
|