Jump to content

Perl Programming/Keywords/listen

From Wikibooks, open books for an open world
Previous: link Keywords Next: local

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

See also

[edit | edit source]
Previous: link Keywords Next: local