G
Guest
According to code i got right of MSDN here is a snip where its shown how to recieve data. The problem is this hangs FOREVER for me in debug mode. After the last packet comes in s.Recieve line never returns. I have subsequently had to add if (bytes < 256) break; But this isnt right. The last packet could be 256 exactly and freeze again
http://msdn.microsoft.com/library/d...html/frlrfsystemnetsocketssocketclasstopic.as
do
bytes = s.Receive(bytesReceived, bytesReceived.Length, 0); //line freezes for me on the last run if there is no more dat
page = page + Encoding.ASCII.GetString(bytesReceived, 0, bytes)
while (bytes > 0)
http://msdn.microsoft.com/library/d...html/frlrfsystemnetsocketssocketclasstopic.as
do
bytes = s.Receive(bytesReceived, bytesReceived.Length, 0); //line freezes for me on the last run if there is no more dat
page = page + Encoding.ASCII.GetString(bytesReceived, 0, bytes)
while (bytes > 0)