Module implementing an asynchronous file like socket interface for the debugger.
None |
AsyncFile | Class wrapping a socket object with a file interface. |
AsyncPendingWrite | Module function to check for data to be written. |
Class wrapping a socket object with a file interface.
maxtries |
None |
AsyncFile | Constructor |
__checkMode | Private method to check the mode. |
close | Public method to close the file. |
fileno | Public method returning the file number. |
flush | Public method to write all pending entries. |
isatty | Public method to indicate whether a tty interface is supported. |
pendingWrite | Public method that returns the number of strings waiting to be written. |
read | Public method to read bytes from this file. |
readCommand | Public method to read a length prefixed command string. |
read_p | Public method to read bytes from this file. |
readable | Public method to check, if the stream is readable. |
readline | Public method to read one line from this file. |
readline_p | Public method to read a line from this file. |
readlines | Public method to read all lines from this file. |
seek | Public method to move the filepointer. |
seekable | Public method to check, if the stream is seekable. |
tell | Public method to get the filepointer position. |
truncate | Public method to truncate the file. |
writable | Public method to check, if a stream is writable. |
write | Public method to write a string to the file. |
write_p | Public method to write a json-rpc 2.0 coded string to the file. |
writelines | Public method to write a list of strings to the file. |
None |
Constructor
Private method to check the mode.
This method checks, if an operation is permitted according to the mode of the file. If it is not, an IOError is raised.
Public method to close the file.
Public method returning the file number.
Public method to write all pending entries.
Public method to indicate whether a tty interface is supported.
Public method that returns the number of strings waiting to be written.
Public method to read bytes from this file.
Public method to read a length prefixed command string.
Public method to read bytes from this file.
Public method to check, if the stream is readable.
Public method to read one line from this file.
Public method to read a line from this file.
Note: This method will not block and may return only a part of a line if that is all that is available.
Public method to read all lines from this file.
Public method to move the filepointer.
Public method to check, if the stream is seekable.
Public method to get the filepointer position.
Public method to truncate the file.
Public method to check, if a stream is writable.
Public method to write a string to the file.
Public method to write a json-rpc 2.0 coded string to the file.
Public method to write a list of strings to the file.
Module function to check for data to be written.