i would like some info on the following:
Socket.BeginSend Method (array<Byte>[]()[], Int32, Int32, SocketFlags, AsyncCallback, Object)
client.BeginSend(message, 0, message.Length, SocketFlags.None, new AsyncCallback(SendData), client);
if the message.lenght is greater than the buffersize (32) do i have to invoke BeginSend multiple times to transmit the entire data packet?
or do i just do multiple reads on the other end until end of actual buffer length is recieved?
this is a discussion as im reading up the documentation before actual implementation.
thanks.
The buffer size is not 32, it is exactly
message.Lengthas defined. You might be confusingInt32with the value 32.In the above case, as long as the actual message size is less than 2147483648 (2^31) you can send it in one call to the method.
On the receiving end you have several choices:
Receivecall returns less than a full chunk size.