开发者

Skip receiving messages broadcasted by me over wireless network

开发者 https://www.devze.com 2023-03-12 10:49 出处:网络
I have a code which transmits messages (broadcasts) continuously on wireless network and also receives messages continuously. Hence, I have the transmission and receiving happening simultaneously us开

I have a code which transmits messages (broadcasts) continuously on wireless network and also receives messages continuously. Hence, I have the transmission and receiving happening simultaneously us开发者_Go百科ing pthreads. The problem that I am facing is that I want to skip receiving messages sent by me, and only receive the packets/messages sent by others. Is it possible to do this?

Note that this code runs on a wireless modem and not on the laptop. The modem runs using OpenWrt OS.


In general, there is no way to prevent receipt of your own node's messages.

Your best bet is to continue letting it receive its own packets and then ignore any that have your MAC or IP address.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号