Perl Programming/Keywords/listen
Appearance
The listen keyword
[edit | edit source]listen does exactly the same what listen(2) in UNIX does; returns with true on success and with false otherwise. It marks marks the socket referred to by SOCKET as a passive socket that will be used to accept incoming connection requests using accept. The argument QUEUESIZE defines the maximum queue length for pending connections for SOCKET may grow.
Syntax
[edit | edit source] local SOCKET, QUEUESIZE