t.i.i.IUNIXTransport(ITransport) : interface documentation

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

Known implementations: twisted.internet.unix._SendmsgMixin

Transport for stream-oriented unix domain connections.
Method sendFileDescriptor Send a duplicate of this (file, socket, pipe, etc) descriptor to the other end of this connection.

Inherited from ITransport:

Method write Write some data to the physical connection, in sequence, in a non-blocking fashion.
Method writeSequence Write a list of strings to the physical connection.
Method loseConnection Close my connection, after writing all pending data.
Method getPeer Get the remote address of this connection.
Method getHost Similar to getPeer, but returns an address describing this side of the connection.
def sendFileDescriptor(descriptor): (source)
Send a duplicate of this (file, socket, pipe, etc) descriptor to the other end of this connection.

The send is non-blocking and will be queued if it cannot be performed immediately. The send will be processed in order with respect to other sendFileDescriptor calls on this transport, but not necessarily with respect to write calls on this transport. The send can only be processed if there are also bytes in the normal connection-oriented send buffer (ie, you must call write at least as many times as you call sendFileDescriptor).

ParametersdescriptorAn int giving a valid file descriptor in this process. Note that a file descriptor may actually refer to a socket, a pipe, or anything else POSIX tries to treat in the same way as a file.
ReturnsNone
API Documentation for Twisted, generated by pydoctor at 2014-05-12 18:27:00.