WebKit.SelectRelease
index
/usr/local/share/webware/WebKit/SelectRelease.py

Used by the AsyncThreadedAppServer module.
 
This file implements an object that can force a call to select in the main
asyncore.poll loop to return. This dispatcher is added to the asyncore polling
group. It is polled for reads. We make this object available to everyone.
When we need the asyncore select loop to return, i.e., we have some data ready
to go, we call the release() method, which does a quick write to it's own socket/file-descriptor. This causes select to return.

 
Modules
       
asynchat
asyncore
os
socket
string
thread

 
Classes
       
asyncore.file_dispatcher(asyncore.dispatcher)
SelectRelease

 
class SelectRelease(asyncore.file_dispatcher)
    Version for Posix.
 
In a Posix environment, we can use a file descriptor as the object
that we include in the polling loop that we force a read on.
 
 
Method resolution order:
SelectRelease
asyncore.file_dispatcher
asyncore.dispatcher

Methods defined here:
__init__(self)
handle_connect(self)
handle_read(self)
log(self, message)
readable(self)
release(self)
writable(self)

Methods inherited from asyncore.file_dispatcher:
set_file(self, fd)

Methods inherited from asyncore.dispatcher:
__getattr__(self, attr)
# cheap inheritance, used to pass all other attribute
# references to the underlying socket object.
__repr__(self)
accept(self)
add_channel(self, map=None)
bind(self, addr)
close(self)
connect(self, address)
create_socket(self, family, type)
del_channel(self, map=None)
handle_accept(self)
handle_close(self)
handle_error(self)
handle_expt(self)
handle_expt_event(self)
handle_read_event(self)
handle_write(self)
handle_write_event(self)
listen(self, num)
log_info(self, message, type='info')
recv(self, buffer_size)
send(self, data)
set_reuse_addr(self)
set_socket(self, sock, map=None)

Data and other attributes inherited from asyncore.dispatcher:
accepting = False
addr = None
closing = False
connected = False
debug = False