t.i.i.IFileDescriptor(ILoggingContext) : interface documentation

Part of twisted.internet.interfaces View Source View In Hierarchy

Known subclasses: twisted.internet.interfaces.IReadDescriptor, twisted.internet.interfaces.IWriteDescriptor

An interface representing a UNIX-style numeric file descriptor.
Method fileno
Method connectionLost Called when the connection was lost.

Inherited from ILoggingContext:

Method logPrefix
def fileno(): (source)
ReturnsThe platform-specified representation of a file descriptor number.
def connectionLost(reason): (source)

Called when 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.

See also IHalfCloseableDescriptor if your descriptor wants to be notified separately of the two halves of the connection being closed.
ParametersreasonA failure instance indicating the reason why the connection was lost. error.ConnectionLost and error.ConnectionDone are of special note, but the failure may be of other classes as well.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:27:37.