3.2.4 acceptaccept This function does the same thing as the
accept
system call - see
accept(2).
It is used by server processes that wish to accept socket connections
from clients.
Execution is suspended until a connection is made, at which time
the unless ($peer = accept NS, S) {
die "Can't accept a connection: $!\n";
}See also the example in the section "Sockets" in Chapter 6, Social Engineering. |