dongzhe
September 11th, 2009, 12:49 AM
I have set socket like this
<code>
iResult=setsockopt(icmp_socket, SOL_SOCKET, SO_BROADCAST, (char *)&bBroadcast,sizeof(BOOL));
</code>
and
SendAddr.sin_family=AF_INET;
SendAddr.sin_port = htons(0);
SendAddr.sin_addr.s_addr=inet_addr(255.255.255.255);
I have no replys
Does anyone whatelse need to be set in order to broadcast icmp msg?
<code>
iResult=setsockopt(icmp_socket, SOL_SOCKET, SO_BROADCAST, (char *)&bBroadcast,sizeof(BOOL));
</code>
and
SendAddr.sin_family=AF_INET;
SendAddr.sin_port = htons(0);
SendAddr.sin_addr.s_addr=inet_addr(255.255.255.255);
I have no replys
Does anyone whatelse need to be set in order to broadcast icmp msg?