February 2012
Intermediate to advanced
1184 pages
37h 17m
English
listenSOCKET,QUEUESIZE
This function tells the system that you’re going to be
accepting connections on this SOCKET and that
the system can queue the number of waiting connections specified by
QUEUESIZE. Imagine having call-waiting on
your phone, with up to 17 callers queued. (Gives me the willies!) The
function returns true if it succeeds, false otherwise.
use Socket;
listen(PROTOSOCK, SOMAXCONN)
|| die "cannot set listen queue on PROTOSOCK: $!";See accept. See also the
section Sockets in Chapter 15.
See listen(2).
Read now
Unlock full access