Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Socket.Receive() multiple calls necessary

$
0
0

Hi,


When larger byte[]s are Sent/Received, we need to call Received multiple time, to get the sent amount of data.

Reading the MS docu (http://msdn.microsoft.com/de-de/library/26f591ax.aspx) it states:

'If you are using a connection-oriented Socket, the Receive method will read as much data as is available, up to the number of bytes specified by the size parameter.'

For me this means, that we get all the sent data in *one* call, not in several.

Did we miss something? Or is there a link to how to officially use it. Example, etc?

Thanks,

Christian


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>