A little TCP problem (reusing streams)...

Blitz3D Forums/Blitz3D Programming/A little TCP problem (reusing streams)...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

don't know what youre doing there but have a look a that code

Function Proto_BroadCast(p%)
	avail = ReadAvail(mp_server)
	tempbuf = CreateBank(avail)
	ReadBytes tempbuf,mp_server,0,avail
		
	For mp.multiplayers = Each multiplayers
		WriteBytes(tempbuf,mp_server,0,avail)
		SendUDPMsg mp_server,mp.multiplayers\ipint%,mp.multiplayers\port%
	Next

	SendUDPMsg mp_server,0,0

	FreeBank tempbuf
End Function