Home | Trees | Index | Help |
|
---|
Package twisted :: Package internet :: Package serialport :: Module posixserialport :: Class SerialPort |
|
BaseSerialPort
--+ |Ephemeral
--+ | | |Logger
--+ | | |FileDescriptor
--+ | SerialPort
Method Summary | |
---|---|
__init__(self,
protocol,
deviceNameOrPortNumber,
reactor,
baudrate,
bytesize,
parity,
stopbits,
timeout,
xonxoff,
rtscts)
| |
The connection was lost. | |
Some data's readable from serial device. | |
File Descriptor number for select(). | |
Write some data to the serial device. | |
Inherited from BaseSerialPort | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Inherited from FileDescriptor | |
Called after a loseConnection(), when all data has been written. | |
Called when data is available for writing. | |
Close the connection at the next available opportunity. | |
| |
Register to receive data from a producer. | |
| |
Start waiting for read availability. | |
Start waiting for write availability. | |
Stop consuming data. | |
| |
Stop waiting for read availability. | |
Stop waiting for write availability. | |
Stop consuming data from a producer, without disconnecting. | |
Reliably write some data. | |
| |
Inherited from Logger | |
Override this method to insert custom logging behavior. | |
Inherited from Ephemeral | |
| |
|
Class Variable Summary | |
---|---|
int |
connected = 1 |
Inherited from FileDescriptor | |
tuple |
__implements__ = (<class twisted.internet.interfaces.IPr...
|
int |
bufferSize = 65536 |
str |
dataBuffer = ''
|
int |
disconnected = 0 |
int |
disconnecting = 0 |
int |
offset = 0 |
NoneType |
producer = None |
int |
producerPaused = 0 |
int |
streamingProducer = 0 |
Method Details |
---|
connectionLost(self, reason)The connection was lost. This is called when the connection on a selectable object has been lost. It will be called whether the connection was closed explicitly, an exception occurred in an event handler, or the other end of the connection closed it first. Clean up state here, but make sure to call back up to FileDescriptor.
|
doRead(self)Some data's readable from serial device. |
fileno(self)File Descriptor number for select(). This method must be overridden or assigned in subclasses to indicate a valid file descriptor for the operating system.
|
writeSomeData(self, data)Write some data to the serial device. |
Class Variable Details |
---|
connected
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:45 2004 | http://epydoc.sf.net |