Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: UDP-Broadcast with socket

by strat (Canon)
on Jan 12, 2009 at 21:50 UTC ( #735817=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! /usr/bin/perl
    use warnings;
    ...
    while( my $addr = recv( UDPSOCK, $input, 4096, 0 ) ) {
        print "$addr => $input\n";
    }
    
  2. or download this
    #! /usr/bin/perl
    use warnings;
    ...
        or die "Error at sendding: $!\n";
    
    close SOCKET;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://735817]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (13)
As of 2014-08-28 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (263 votes), past polls