So I am working on a program that when a message is received through udp, it will send a message back with the text "008" and send the user information to all of the other players. The problem is when I have both one after another, it seems that it will not send the message. If I make the second section of sending into comments, the first section works perfectly. So my question is is it possible to send the messages to fast one after another? does it mash them together and try to send them? It should also be noted that I am using my own computer as the client and host, so im sending it to 127.0.0.1.
WriteString(stream,"008")
SendUDPMsg stream,UDPMsgIP(stream),UDPMsgPort(stream)
For players.player=Each player
WriteString(stream,"005"+LSet$(newusername,30)+""+LSet$(UDPMsgIP(stream),13)+""+LSet$(UDPMsgPort(stream),5))
SendUDPMsg stream,players\ip,players\port
Next
|