Hi folks,
I wanted to test the new UDP commandset and found out, that at least the AddNetworkMessageInteger command is possibly broken
Beside the other network stuff, I created following message:
AddNetworkMessageInteger(iMsgID, val("FFFFFFFF",16) )
But I recieved: FFFFFF7F
Even with multiple Integers.
When I added this as a message:
AddNetworkMessageInteger(iMsgID, val("FFFFFFFF",16) )
AddNetworkMessageInteger(iMsgID, val("FF000000",16) )
AddNetworkMessageInteger(iMsgID, val("FFFFFFFF",16) )
I recieved 3 times "FFFFFF7F" - that is even worse than a missing half - byte.
I thought my reciever was broken, but I managed to find the free tool "Packet Sender", and it worked as expected.
My basic test code is:
localip$ = GetDeviceIP()
listenerID = CreateUDPListener( localip$, 8888 )
do
print(localip$)
if GetRawKeyPressed(13)
print("Send")
iMsgID = CreateNetworkMessage()
AddNetworkMessageInteger(iMsgID, val("00FFFFFF",16) )
AddNetworkMessageInteger(iMsgID, val("FF000000",16) )
AddNetworkMessageInteger(iMsgID, val("FFFFFFFF",16) )
SendUDPNetworkMessage(listenerID, iMsgID,"192.168.2.22",8888)
endif
Print( ScreenFPS() )
Sync()
loop
Do I have some logic error in my code?
Greetings,
Jack