The Assimilation Project  based on Assimilation version
cma.assimglib.IOWatch Class Reference
Inheritance diagram for cma.assimglib.IOWatch:
Collaboration diagram for cma.assimglib.IOWatch:

Public Member Functions

def __init__ (self, fileno, conditions, callback, otherobj=None)
def __del__ (self)

Data Fields


Static Public Attributes

list save_callbacks = []

Detailed Description

Definition at line 82 of file

Constructor & Destructor Documentation

def cma.assimglib.IOWatch.__init__ (   self,
  otherobj = None 
fileno is the UNIX file descriptor
Conditions is a bitwise-OR of at least one of {IO_IN, IO_PRI, IO_ERR, IO_OUT, IO_HUP}
The callback function receives three parameters:
otherobj (as passed to io_add_watch)
    and returns a bool - True if we should keep watching this file descriptor, False if not.

Return: int (source id of our watch condition - suitable to passing to source_remove)

Note that you must keep a reference around to the return result or the callback may crash
if the elements of this object get garbage collected.

Definition at line 85 of file

def cma.assimglib.IOWatch.__del__ (   self)

Definition at line 107 of file

References cma.assimglib.IOWatch.sourceid.

Field Documentation


Definition at line 100 of file

list cma.assimglib.IOWatch.save_callbacks = []

Definition at line 84 of file


The documentation for this class was generated from the following file: