Deleting UDP messages

Blitz3D Forums/Blitz3D Beginners Area/Deleting UDP messages

AngelOnFira(Posted 2014) [#1]
My program seems to delete any UDP messages that are in the queue to be looked at if I send out another UDP message. Is this suppose to happen?

While RecvUDPMsg(stream)

That is the line I use to read the UDP messages

SendUDPMsg(lanstream,playersend\ip,playersend\port)

And then I send out another UDP message but does it delete anything that wasn't looked at in the RecvUDPMsg(stream) command?


_PJ_(Posted 2014) [#2]
Maybe you could post some example code, else it's hard to see what might be affecting things. I imagine you are overwriting a variable storing the received messages.


Matty(Posted 2014) [#3]
Short answer...you're doing it wrong.

Post some code....