can't create socket using IO::Socket
Posted
by Haiyuan Zhang
on Stack Overflow
See other posts from Stack Overflow
or by Haiyuan Zhang
Published on 2010-06-11T03:23:35Z
Indexed on
2010/06/11
3:33 UTC
Read the original article
Hit count: 308
when I run the following code, the execution is just hanging there, No response at all. does any of you can tell me what's wrong with the sample code?
use strict;
use warnings;
use IO::Select;
use IO::Socket;
my $s = new IO::Socket (
LocalPort => 8889,
Proto => 'tcp',
Listen => 16,
Reuse => 1
);
die "could not create socket $!\n" unless $s;
© Stack Overflow or respective owner