Which is equal to this:
while (Offset < packet.Data.Length)
{
Offset += m_Socket.Receive(packet.Data, Offset, packet.Data.Length - Offset, SocketFlags.None);
}
In Siliverlight? This is a Windows form and does not work with Silverlight: / Any help would be appreciated.
thank
What the function does, on the “completed” sub, I catch 4 bytes, which is the length of the header from my server, after I catch these 4 bytes, I want to go to the endReceive method, which receives the remaining packets length.
How can I do this in Silverlight?
source
share