class _IProcessTransportWithConsumerAndProducer(interfaces.IProcessTransport, interfaces.IConsumer, interfaces.IPushProducer): (source)
An _IProcessTransportWithConsumerAndProducer
combines various interfaces to work around the issue that interfaces.IProcessTransport
is incompletely defined and doesn't specify flow-control interfaces, and that proxyForInterface
doesn't allow for multiple interfaces.
Inherited from IProcessTransport
:
Method | close |
Close a file descriptor which is connected to the child process, identified by its FD in the child process. |
Method | close |
Close stderr. |
Method | close |
Close stdin after all data has been written out. |
Method | close |
Close stdout. |
Method | lose |
Close stdin, stderr and stdout. |
Method | signal |
Send a signal to the process. |
Method | write |
Similar to ITransport.write but also allows the file descriptor in the child process which will receive the bytes to be specified. |
Attribute | pid |
From before IProcessProtocol.makeConnection is called to before IProcessProtocol.processEnded is called, pid is an int giving the platform process ID of this process. pid is None at all other times. |
Inherited from ITransport
(via IProcessTransport
):
Method | get |
Similar to getPeer, but returns an address describing this side of the connection. |
Method | get |
Get the remote address of this connection. |
Method | write |
Write some data to the physical connection, in sequence, in a non-blocking fashion. |
Method | write |
Write an iterable of byte strings to the physical connection. |
Inherited from IConsumer
(via IProcessTransport
, ITransport
):
Method | register |
Register to receive data from a producer. |
Method | unregister |
Stop consuming data from a producer, without disconnecting. |
Inherited from IPushProducer
(via IProcessTransport
, ITransport
, IConsumer
):
Method | pause |
Pause producing data. |
Method | resume |
Resume producing data. |
Inherited from IProducer
(via IProcessTransport
, ITransport
, IConsumer
, IPushProducer
):
Method | stop |
Stop producing data. |