perl socket

Hello there:
What is default value of listen if I, avoid init it on constructor. I need maximum num for Listen. I want to write a daemon thus i need unlimited listen.

my $sock = IO::Socket::INET->new( Listen    => 20,
LocalPort => $port,
Reuse     => 1)

Thanks in advance.

AFAIK, the Listen option only defines the listen queue, eg. the maximum number of concurrent connection tries. As soon as your program accept()s a connection one of these slots gets freed.
And I'd suggest not allowing unlimited connections for your daemon as this might kill your system if too many resources are used.

From perlipc:

Listen

The Listen parameter is set to the maximum number of pending connections we can accept until we turn away incoming clients. Think of it as a call-waiting queue for your telephone. The low-level Socket module has a special symbol for the system maximum, which is SOMAXCONN.

Mr Pludi and Kevin, Thanks a lot.