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.se nd(sendBuffer, count, SocketFlags.Non e);
}
....and a receiving application that receives like this:
while(MyReceive Socket.connecte d)
{
noOfBytesReceiv ed = MyReceiveSocket ..Receive(recei veBuffer);
DoSomething.... ......
}
first time it receives 10 bytes but then it receives the last 30 bytes in
one package (noOfBytesRecei ved =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.se nd(sendBuffer, count, SocketFlags.Non e);
}
....and a receiving application that receives like this:
while(MyReceive Socket.connecte d)
{
noOfBytesReceiv ed = MyReceiveSocket ..Receive(recei veBuffer);
DoSomething.... ......
}
first time it receives 10 bytes but then it receives the last 30 bytes in
one package (noOfBytesRecei ved =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
Comment