class _DescriptorExchanger: (source)
Known subclasses: twisted.protocols.amp.BinaryBoxProtocol
Implements interfaces: twisted.internet.interfaces.IFileDescriptorReceiver
_DescriptorExchanger
is a mixin for BinaryBoxProtocol
which adds support for receiving file descriptors, a feature offered by IUNIXTransport
.
Method | __init__ |
Undocumented |
Method | file |
Collect received file descriptors to be claimed later by Descriptor . |
Method | _send |
Assign and return the next ordinal to the given descriptor after sending the descriptor over this protocol's transport. |
Instance Variable | _descriptors |
Temporary storage for all file descriptors received. Values in this dictionary are the file descriptors (as integers). Keys in this dictionary are ordinals giving the order in which each descriptor was received... |
Instance Variable | _get |
Undocumented |
Instance Variable | _receiving |
A no-argument callable which returns the ordinals, starting from 0. This is used to construct values for fileDescriptorReceived. |
Instance Variable | _sending |
A no-argument callable which returns the ordinals, starting from 0. This is used to construct values for _sendFileDescriptor. |
Collect received file descriptors to be claimed later by Descriptor
.
Parameters | |
descriptor:int | The received file descriptor. |
Assign and return the next ordinal to the given descriptor after sending the descriptor over this protocol's transport.
Temporary storage for all file descriptors received. Values in this dictionary are the file descriptors (as integers). Keys in this dictionary are ordinals giving the order in which each descriptor was received. The ordering information is used to allow Descriptor
to determine which is the correct descriptor for any particular usage of that argument type.