Part of twisted.internet.iocpreactor.abstract View Source View In Hierarchy
|Method||readConnectionLost||Indicates read connection was lost.|
|Method||writeConnectionLost||Indicates write connection was lost.|
|Method||write||Reliably write some data.|
|Method||writeSequence||Write a list of strings to the physical connection.|
|Method||connectionLost||The connection was lost.|
|Method||loseConnection||Close the connection at the next available opportunity.|
|Method||registerProducer||Register to receive data from a producer.|
|Method||unregisterProducer||Stop consuming data from a producer, without disconnecting.|
|Method||stopConsuming||Stop consuming data.|
|Method||stopProducing||Stop producing data.|
|Method||_dispatchData||Dispatch previously read data. Return True if self.reading and we don't have any more data|
|Method||_handleRead||Returns False if we should stop reading for now|
|Method||_handleWrite||Returns false if we should stop writing for now|
Inherited from Logger:
|Method||logPrefix||Override this method to insert custom logging behavior. Its return value will be inserted in front of every line. It may be called more times than the number of output lines.|
Inherited from Ephemeral:
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.
Close the connection at the next available opportunity.
Call this to cause this FileDescriptor to lose its connection. It will first write any data that it has buffered.If there is data buffered yet to be written, this method will cause the transport to lose its connection as soon as it's done flushing its write buffer. If you have a producer registered, the connection won't be closed until the producer is finished. Therefore, make sure you unregister your producer when it's finished, or the connection will never close.
Register to receive data from a producer.
This sets this selectable to be a consumer for a producer. When this selectable runs out of data on a write() call, it will ask the producer to resumeProducing(). A producer should implement the IProducer interface.FileDescriptor provides some infrastructure for producer methods.
Stop consuming data.This is called when a producer has lost its connection, to tell the consumer to go lose its connection (and break potential circular references).