O
Ole
Hi,
Is there a way to prevent Socket from assembling the packages it receives?
short explanation:
I have an application A that sends like this:
for (i0; i<4; i++)
{
MySendSocket.send(sendBuffer, count, SocketFlags.None);
}
....and a receiving application that receives like this:
while(MyReceiveSocket.connected)
{
noOfBytesReceived = MyReceiveSocket..Receive(receiveBuffer);
DoSomething..........
}
first time it receives 10 bytes but then it receives the last 30 bytes in
one package (noOfBytesReceived =30). So is there a way to force it to
receive the individual packages (the size is not necessarily the same in
each package)?
Thanks,
Ole
Is there a way to prevent Socket from assembling the packages it receives?
short explanation:
I have an application A that sends like this:
for (i0; i<4; i++)
{
MySendSocket.send(sendBuffer, count, SocketFlags.None);
}
....and a receiving application that receives like this:
while(MyReceiveSocket.connected)
{
noOfBytesReceived = MyReceiveSocket..Receive(receiveBuffer);
DoSomething..........
}
first time it receives 10 bytes but then it receives the last 30 bytes in
one package (noOfBytesReceived =30). So is there a way to force it to
receive the individual packages (the size is not necessarily the same in
each package)?
Thanks,
Ole