atistler has asked for the wisdom of the Perl Monks concerning the following question:
bash-2.05a$ sudo ./sockettest.pl Problem with recv: Resource temporarily unavailable Problem with recv: Resource temporarily unavailable Problem with recv: Resource temporarily unavailable Problem with recv: Resource temporarily unavailable Problem with recv: Resource temporarily unavailable Problem with recv: Resource temporarily unavailable#!/usr/bin/perl -w use IO::Socket::INET; my $sock = IO::Socket::INET->new( LocalAddr => 'loghost', LocalPort => 514, Proto => 'udp', Listen => '5' ) or die "Cant establish socket"; my $data = ''; while ( 1 ) { my $from_who = recv( $sock, $data, 1450, 0 ) || warn "Problem +with recv: $!\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: UDP Socket: Resource temporarily unavailable
by shmem (Chancellor) on Jul 25, 2006 at 10:53 UTC |