文件名称:udp_brodcast_rcv
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:643byte
-
已下载: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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.