Sending UDP broadcast, receiving multiple messages

后端 未结 4 638
借酒劲吻你
借酒劲吻你 2020-11-30 22:52

I\'ve got 2 programs, 1 for sending an UDP broadcast message and 1 that is listening for this broadcast. My problem is that sometimes when I send a broadcast, the receiver r

4条回答
  •  萌比男神i
    2020-11-30 23:15

    The reason is when you broadcast you send your message to all the end points in the network. Since you are in the same network, you will receive the same message because it is broadcasted. You can write a custom filter for that.

提交回复
热议问题