SUMMARY: CONSTR | METHOD | DETAIL: CONSTR | METHOD |
Copyright© 2006, Dean Arnold, Presicient Corp., USA
All rights reserved.
Licensed under the Academic Free License version 2.1, as specified in the License.txt file included in this software package, or at OpenSource.org.
Unless otherwise noted, $_[0]
is the object instance variable.
Constructor Summary |
---|
new()
Creates separate read, write, and exception IO::Select objects |
Method Summary |
---|
addAll($fd)
Add a HTTP::Daemon::Threaded::Socket object to the all selectors |
addExcept($fd)
Add a HTTP::Daemon::Threaded::Socket object to the exception selector |
addNoWrite($fd)
Add a HTTP::Daemon::Threaded::Socket object to the read and exception selector |
addRead($fd)
Add a HTTP::Daemon::Threaded::Socket object to the read selector |
addWrite($fd)
Add a HTTP::Daemon::Threaded::Socket object to the write selector |
getAll()
Return all selectors |
getExcept()
Return the exception selector |
getRead()
Return the read selector |
getTimeout()
Return the current select() timeout value |
getWrite()
Return the write selector |
removeAll($fd)
Remove a HTTP::Daemon::Threaded::Socket object from all the selectors |
removeExcept($fd)
Remove a HTTP::Daemon::Threaded::Socket object from the exception selector |
removeNoWrite($fd)
Remove a HTTP::Daemon::Threaded::Socket object from the read and exception selectors |
removeRead($fd)
Remove a HTTP::Daemon::Threaded::Socket object from the read selector |
removeWrite($fd)
Remove a HTTP::Daemon::Threaded::Socket object from the write selector |
select()
Wait up to the configured timeout for an event on any of the HTTP::Daemon::Threaded::Socket objects installed in any of the read, write, or exception IO::Select objects |
setTimeout($timeout)
Set the select() timeout |
Constructor Details |
---|
new()
Method Details |
---|
addAll($fd)
$fd
- a HTTP::Daemon::Threaded::Socket
addExcept($fd)
$fd
- a HTTP::Daemon::Threaded::Socket
addNoWrite($fd)
$fd
- a HTTP::Daemon::Threaded::Socket
addRead($fd)
$fd
- a HTTP::Daemon::Threaded::Socket
addWrite($fd)
$fd
- a HTTP::Daemon::Threaded::Socket
getAll()
getExcept()
getRead()
getTimeout()
getWrite()
removeAll($fd)
$fd
- a HTTP::Daemon::Threaded::Socket
removeExcept($fd)
$fd
- a HTTP::Daemon::Threaded::Socket
removeNoWrite($fd)
$fd
- a HTTP::Daemon::Threaded::Socket
removeRead($fd)
$fd
- a HTTP::Daemon::Threaded::Socket
removeWrite($fd)
$fd
- a HTTP::Daemon::Threaded::Socket
select()
setTimeout($timeout)
$timeout
- number of seconds to select()