Table of Contents

Class: AsyncIO ./Debugger/AsyncIO.py

Class implementing asynchronous reading and writing.

It implements asynchronous reading and writing using the Qt event loop.

Signals

lineReady
emitted when a complete line has been read
gotEOF
emitted if EOF was read
Base Classes   
QObject
Methods   
__init__
disconnect
readReady
setDescriptors
setNotifiers
setWriteNotifier
write
writeReady
  __init__ 
__init__ ( self,  parent=None )

Constructor

Arguments

parent
the optional parent of this object (QObject)
  disconnect 
disconnect ( self )

Public method to disconnect any current connection.

  readReady 
readReady ( self,  fd )

Protected method called when there is data ready to be read.

Arguments

fd
file descriptor of the file that has data to be read (int)
  setDescriptors 
setDescriptors (
        self,
        rfd,
        wfd,
        )

Public method called to set the descriptors for the connection.

Arguments

rfd
file descriptor of the input file (int)
wfd
file descriptor of the output file (int)
  setNotifiers 
setNotifiers ( self )

Public method to set up the socket notifiers for the Qt event loop.

  setWriteNotifier 
setWriteNotifier ( self )

Private method called to disable the write notifier.

If there is no data to be written, the write notifier will be diabled.

  write 
write ( self,  s )

Public method to write a string.

Arguments

s
the data to be written (string)
  writeReady 
writeReady ( self,  fd )

Protected method called when we are ready to write data.

Arguments

fd
file descriptor of the file that has data to be written (int)

Table of Contents

This document was automatically generated on Fri Mar 14 19:54:45 2003 by HappyDoc version 2.1