文件名称:udp_brodcast_rcv
- 所属分类:
- Internet/网络编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 张**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
如果没有设置BLOADCASE选项的不递送。
如果bind端口不匹配不递送该套接口
如果绑定的不是INADDR_ANY话,那么BIND的地址和目的地址匹配才能递送:也就是说你必须BIND一个广播地址或者绑定INADDR_ANY
用ifconfig命令可以disable块网卡的BROADCAST标志,让其不能接受以太网广播。
也可以使用ioctl的SIOCSIFFLAGS方法去掉一个接口的标志IFF_BROADCAST,使之不能接受以太网广播。-If the option is not set BLOADCASE not delivered. If the port does not match does not bind the socket if delivery is not bound to INADDR_ANY, then the BIND destination address matches the address and can be delivered: that you have a broadcast address or BIND bind INADDR_ANY block with the ifconfig command to disable the network card BROADCAST flag, let it not accept the Ethernet broadcast. You can also use ioctl' s SIOCSIFFLAGS method to remove an interface symbol IFF_BROADCAST, so they can not accept the Ethernet broadcast.
如果bind端口不匹配不递送该套接口
如果绑定的不是INADDR_ANY话,那么BIND的地址和目的地址匹配才能递送:也就是说你必须BIND一个广播地址或者绑定INADDR_ANY
用ifconfig命令可以disable块网卡的BROADCAST标志,让其不能接受以太网广播。
也可以使用ioctl的SIOCSIFFLAGS方法去掉一个接口的标志IFF_BROADCAST,使之不能接受以太网广播。-If the option is not set BLOADCASE not delivered. If the port does not match does not bind the socket if delivery is not bound to INADDR_ANY, then the BIND destination address matches the address and can be delivered: that you have a broadcast address or BIND bind INADDR_ANY block with the ifconfig command to disable the network card BROADCAST flag, let it not accept the Ethernet broadcast. You can also use ioctl' s SIOCSIFFLAGS method to remove an interface symbol IFF_BROADCAST, so they can not accept the Ethernet broadcast.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
udp_brodcast_rcv.c