My problem is, I'm sending one broadcast ("Test") and a second later I'm sending a direct message ("Test2").

The receiving server then prints out the broadcast nearly 8 times before the direct message gets repeated 6 times. From Google I know that this shouldn't be, but I can't figure out what I've done wrong.

Link to post

Share on other sites

2 answers to this question

Recommended Posts

First, why are you sleeping after event.pull() , that's unneccesary and could cause issues where a event is missed.

Second, how are the computers connected (picture), Are the computers separated by a swich, is there a loop where the swich receives a packet twice (This is the most likely reason for duplicating messages.)

Share this post

Link to post

Share on other sites

First, why are you sleeping after event.pull() , that's unneccesary and could cause issues where a event is missed.

Second, how are the computers connected (picture), Are the computers separated by a swich, is there a loop where the swich receives a packet twice (This is the most likely reason for duplicating messages.)

the sleep was a try to prevent multiple network reading, didnt worked. The computers were connected only by cables, now everything is fine and working, i also built everything new. I believe i had the switch function in one of the racks activated so that may have caused the repetitions