411 REFERENCE · Wikibooks
Perl Programming/Keywords/accept
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Perl abs alarm Keywords
The accept keyword
accept does exactly the same what accept(2) in UNIX does; returns the packed address, if successful and 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 NEWSOCKET is a socket that has been created with socket, is bound to a local address with bind, and listens for connections after a listen.
Syntax
accept NEWSOCKET, GENERICSOCKET
See also
bind
listen
socket
Perl abs alarm Keywords
</noinclude>