Sending messages too fast

Blitz3D Forums/Blitz3D Programming/Sending messages too fast

AngelOnFira(Posted 2014) [#1]
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



Wings(Posted 2014) [#2]
UDP is a Swift network protocol. its Swift cause its so stripped of with all the checks. i remember i had to open certain ports one for sending and Another for recive.

The code you posted here dosent say to much dosent compile. please.

dont forgett to use the stop command to debugg prupose its usefull when coding netowrking.