Page 1 of 1

receiveUDPData size argumnet not working

Posted: Fri Aug 23, 2019 6:35 pm
by DieterG
Hello, i have Hollywood 7.1 and it seems the ReceiveUDPData optional Argument for the size do not working.
Default size is set to 8192 bytes, so all works until you will get 8193 bytes.

Code: Select all

temp$, ipadress2$, portnr = ReceiveUDPData(1,blocksize+4)
or easier:

Code: Select all

temp$, ipadress2$, portnr = ReceiveUDPData(1,16188)
bot will not work , if more then 8192 bytes received, the error "The following network error occurred:
Message too long" appears.

I know, Andreas will not fix errors. Maybe it works in actual Hollywood 8.0 ?
If not, Andreas may repair it and sell with next Hollywood 9.0 ?
Thanx

Re: receiveUDPData size argumnet not working

Posted: Fri Aug 23, 2019 7:27 pm
by airsoftsoftwair
That's actually a feature. ReceiveUDPData() is currently limited to 8192 bytes. I'll add this to the documentation. You can just read in smaller chunks to work around this limitation.