Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 5th, 2004, 2:46 PM   #1
Frenchy
Newbie
 
Join Date: Aug 2004
Posts: 10
Rep Power: 0 Frenchy is on a distinguished road
i work on a prog and i would create multicast communication

one host and few client.. i am newby in the IP communication..have you a sample of prog to explain the way to create that..?

maybe multicast is not the better solution..

thanks for your help
Frenchy is offline   Reply With Quote
Old Sep 5th, 2004, 5:41 PM   #2
kurifu
Expert Programmer
 
kurifu's Avatar
 
Join Date: Jul 2004
Location: Halifax, Nova Scotia (Canada)
Posts: 784
Rep Power: 5 kurifu is on a distinguished road
Send a message via ICQ to kurifu Send a message via MSN to kurifu
Multicast is a very interesting technology, and I do wish there was a lot more support for it since it would (in theory, and seemingly practicality) reduce the amount of uneeded bandwidth higher up and a traceroute for certain services likes streaming radio, and video.

Actually you could really stream from a single computer to a gateway router with a line that can carry enough bandwidth for one connection... the implications of this technology would be very usefull.

Though I am not 100% sure of the API calls you need to make (since it also depends on if you are using Berkerly style or WinSocks style sockets) I can give you a brief overview of Multicast.

You create a multicast group on your server, this group will be responsible for streaming data, you create this like youwould create a normal socket for sending a stream of data only somewhere along the way there is a flag you would set to enable multi-cast. From this point you would allow other sockets (when picked off your listening socket) into the group by joining them into the group, and when they leave you would remove them from the group. That is the basic priniciple of how it works. http://msnd.microsoft.com probably has information on that protocol.

HOWEVER, chances are you are not going to get the protocol to work. Multicast support has to be specifically enabled to work on a LAN, and plain out does not work over the internet. Even if you ISP for some strange reason had multicast enabled, you would likely not be able to cast beyond your immediate WAN subnet.

You might be better off simulating a multicast system if you need a multi-server design, where you broadcast to one server and manage connections on each of those servers (a bit of distributed networking and computing there for you--this type of set up is no easy task to conquer).

Perhaps a UDP based start-topology would be a better solution? Or maybe something like Bit-Torrent's network topology (what is that called.. star-ring? It is certainly not a complete graph, that much I know, but resembles a bit of star and a bit of ring topology). Of course this all depends on what you are trying to do.
__________________
Clifford Matthew Roche <geek@cliffordroche.com>
Web Hosting: http://www.crd-hosting.com
Consulting: http://www.crdev-consulting.com
kurifu is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:58 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC