-
November 26th, 2007, 07:13 PM
#1
Broadcasting in Networks
Hi ,
I am doing a project in networking.I have some nodes like 20 nodes and i start sending a packet from a node and broadcast that packet to its neighbours.I could implement till sending of packet to first neighbour but i m having a problem with broadcasting..could anyone help me out with this...like could you suggest me how to go about it or if there is any code which i can use...
thanks,
aravind
-
November 26th, 2007, 08:56 PM
#2
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
-
November 27th, 2007, 12:55 AM
#3
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
-
November 28th, 2007, 03:04 AM
#4
Re: Broadcasting in Networks
-
November 28th, 2007, 10:16 PM
#5
Re: Broadcasting in Networks
thank you for moving into network programming...could anyone give me a code for broadcasting a packet in network....
-
November 28th, 2007, 10:40 PM
#6
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
henky
----------------------------------
henky@nok.co.id is not my email address anymore...
Jangan Pernah Menyerah
-
November 29th, 2007, 11:06 AM
#7
Re: Broadcasting in Networks
And set the SO_BROADCAST socket option.
-
December 1st, 2007, 10:51 PM
#8
Broadcasting in Networks
Actually i am doing my program in c++
thanks
-
December 2nd, 2007, 01:17 AM
#9
Re: Broadcasting in Networks
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|