Table of Contents

Class: AsyncIO ./Debugger/DebugClientNoQt.py

Class implementing asynchronous reading and writing.

Methods   
__init__
disconnect
handleLine
readReady
sessionClose
setDescriptors
write
writeReady
  __init__ 
__init__ ( self,  parent=None )

Constructor

Arguments

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

Public method to disconnect any current connection.

  handleLine 
handleLine ( self,  s )

Method to be overwritten in subclasses. It is called when a line of text is received on self.readstream.

  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)
  sessionClose 
sessionClose ( self )

Method to be overwritten in subclasses to do something usefull. It is called, if a zero length string is received on self.readstream.

  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)
  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