Re: Broadcasting in Networks
What you are doing is multicasting which requires a UDP connection and special IP address ranges. I suggest you start with a Google search for UDP multicast and see what turns up.
Regards
Alan
Re: Broadcasting in Networks
Hi Alan,
I am actually working on AODV routing protocol....so i tried to implement it in c++ but jus got struck at broadcasting....
Thanks,
aravind
Re: Broadcasting in Networks
Re: Broadcasting in Networks
thank you for moving into network programming...could anyone give me a code for broadcasting a packet in network....
Re: Broadcasting in Networks
It's simple. You just send packet to broadcast address.
i.e.
Your network: 192.168.1.0/24, then
broadcast address will be 192.168.1.255
Re: Broadcasting in Networks
And set the SO_BROADCAST socket option.
Re: Broadcasting in Networks
Quote:
Originally Posted by jimmy.peyton.v
Actually i am doing my program in c++
thanks
Yes, the information we gave you is for C/C++ programming.
Mike