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

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 13.2 The IO::Socket Module Chapter 13
Sockets
Next: Reference: timeout
 

accept

accept ([

pkg

])

Performs the accept system call on a socket and returns a new object. The new object is created in the same class as the listen socket, unless pkg is specified. The object can be used to communicate with the client that was trying to connect. In a scalar context, the new socket is returned, or undef on failure. In an array context, a two-element array is returned containing the new socket and the peer address, or an empty list on failure.


Previous: 13.2 The IO::Socket Module Perl in a Nutshell Next: Reference: timeout
13.2 The IO::Socket Module Book Index Reference: timeout

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.