Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 contemplating the Monastery: (10)
As of 2015-07-31 07:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (275 votes), past polls