start page | rating of books | rating of authors | reviews | copyrights

Programming Perl

Programming PerlSearch this book
Previous: 3.2.85 link Chapter 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 link Programming Perl Next: 3.2.87 local
3.2.85 link Book Index 3.2.87 local