Perl Programming/Keywords/listen

Previous: link Keywords Next: local

The listen keyword edit

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

  local SOCKET, QUEUESIZE

See also edit

Previous: link Keywords Next: local