the docu says there is more to read, when the above expression is false.
Code: Select all
*Buffer = AllocateMemory(20000)
SendNetworkString(Socket, Header)
While Not NetworkClientEvent(Socket)
Delay(10)
Wend
BufferSize.l = MemorySize(*Buffer)
Repeat
Size.l = ReceiveNetworkData(Socket, *Buffer, BufferSize)
Debug Size.l
ForEver ;Size < BufferSize
means it, Result < BufferLength seems to be directly true, however, more data is following2904
2048
2048
260
2048
856
0
So, to really get the whole data I'd currently need to check if ReceiveNetworkData returned 0, but this
would include a timeout, so how should I write it?
Thank you in advance.