interface documentation

class IReadDescriptor(IFileDescriptor): (source)

Known subclasses: twisted.internet.interfaces.IReadWriteDescriptor

View In Hierarchy

An IFileDescriptor that can read.

This interface is generally used in conjunction with IReactorFDSet.

Method do​Read Some data is available for reading on your descriptor.

Inherited from IFileDescriptor:

Method connection​Lost Called when the connection was lost.
Method fileno No summary

Inherited from ILoggingContext (via IFileDescriptor):

Method log​Prefix
def doRead(): (source)
Some data is available for reading on your descriptor.
Returns
Optional[Failure]If an error is encountered which causes the descriptor to no longer be valid, a Failure should be returned. Otherwise, None.