Nope, because you never can't get more data than passed buffer, because
recieved data is to Buffer.
You must do something like:
byte[] buffer = new byte[8000];
int totalReaded = 0;
while(countReaded < 8000){
int sizeReaded = MySocket.Receive(buffer,totalReaded,buffer.Length -
totalReaded, SocketFlags.None);
totalReaded += totalReaded;
}
Similar code gets exactly 8000 bytes as you need.
"Ole" <ol*@blabla.comwrote in message
news:Ow**************@TK2MSFTNGP03.phx.gbl...
Thanks! - Does that mean that I could receive even a larger number than I
ask for?
Thanks,
Ole
"Ivar" <iv*@lumisoft.eewrote in message
news:u9**************@TK2MSFTNGP03.phx.gbl...
>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.