Programming Perl

Programming PerlSearch this book
Previous: 3.2.85 linkChapter 3
Functions
Next: 3.2.87 local
 

3.2.86 listen

listen SOCKET, QUEUESIZE

This function does the same thing as the listen(2) system call. It 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 five callers queued. (Gives me the willies!) The function returns true if it succeeded, false otherwise (and puts the error code into $!). See the section "Sockets" in Chapter 6.


Previous: 3.2.85 linkProgramming PerlNext: 3.2.87 local
3.2.85 linkBook Index3.2.87 local