Class k.t.WaitForIO(
WaitCondition
):
Part of
kiwi.tasklet
An object that waits for IO conditions on sockets or file descriptors.
Function
__init__
Create a new WaitForIO object.
Function
arm
Overrides WaitCondition.arm
Function
disarm
Overrides WaitCondition.disarm
Function
_io_cb
Undocumented
def
__init__(self, filedes, condition=gobject.IO_IN, priority=gobject.PRIORITY_DEFAULT):
Create a new WaitForIO object.
param
filedes
object to monitor for IO
type
filedes
int file descriptor, or a gobject.IOChannel, or an object with a
fileno()
method, such as socket or unix file.
param
condition
IO event mask
type
condition
a set of
gobject.IO_*
flags ORed together
param
priority
mainloop source priority
def
arm(self, tasklet):
Overrides WaitCondition.arm
def
disarm(self):
Overrides WaitCondition.disarm
def
_io_cb(self, unused_filedes, condition):
Undocumented