[EMAIL PROTECTED] wrote:
> 
> This may be a stupid question, or possibly one not even dealing with perl.
> But can anyone point me to a way to make a UDP broadcast server?
> 
> I mean a true broadcast, or a "one to many" transmission.  Is there a
> special flag to pass to IO::Socket to make packets replicate across the
> network?  I've built a UDP server, and I can talk to one client just fine,
> that was fine for the client (listener) development, but now I want to have
> multiple clients listening, and just one server sending to all of them.
> Can this be done?  what stupid, simple thing am I missing?

Haven't played with broadcasting in Perl, but try experimenting with:

setsockopt to SO_BROADCAST

and the addr INADDR_BROADCAST (which should be equiv to inet_aton('255.255.255.255')).

-- 
  ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
 (_/   /  )    // //       DBE Collectibles   Mailto:[EMAIL PROTECTED] 
  / ) /--<  o // //      http://dbecoll.webjump.com/ (Free site for Perl)
-/-' /___/_<_</_</_     Castle of Medieval Myth & Magic http://www.todbe.com/
_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to 
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users

Reply via email to