djbiv has asked for the wisdom of the Perl Monks concerning the following question:
my $count = 0; my @sock; while ($count < 100) { $sock[$count] = IO::Socket::INET->new(PeerAddr => $args{h}, PeerPort => $args{p}, Proto => 'tcp', Type => SOCK_STREAM, Timeout => 10); print "\nCONNECTED TO HOST:$args{h} PORT:$args{p} $count times \n" +; $count++; } sleep 10; my $count2; while ($count2 < 5) { shutdown ($sock[$count2], 2); print "Closed $sock[$count2]\n"; $count2++; } sleep 15; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: fin ack problems with IO::Socket
by liz (Monsignor) on Aug 22, 2003 at 07:17 UTC | |
by djbiv (Scribe) on Aug 22, 2003 at 12:11 UTC | |
|
Re: fin ack problems with IO::Socket
by tbone1 (Monsignor) on Aug 22, 2003 at 13:33 UTC | |
by vek (Prior) on Aug 22, 2003 at 16:55 UTC | |
|
Re: fin ack problems with IO::Socket
by djbiv (Scribe) on Aug 22, 2003 at 17:17 UTC |