Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 about the Monastery: (5)
As of 2014-10-31 06:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (215 votes), past polls