class documentation
class ProcessEndpoint: (source)
Constructor: ProcessEndpoint(reactor, executable, args, env, ...)
Implements interfaces: twisted.internet.interfaces.IStreamClientEndpoint
An endpoint for child processes
| Present Since | |
| 13.1 |
| Method | __init__ |
See IReactorProcess.spawnProcess. |
| Method | connect |
Implement IStreamClientEndpoint.connect to launch a child process and connect it to a protocol created by protocolFactory. |
| Instance Variable | _args |
Undocumented |
| Instance Variable | _child |
Undocumented |
| Instance Variable | _env |
Undocumented |
| Instance Variable | _err |
Undocumented |
| Instance Variable | _executable |
Undocumented |
| Instance Variable | _gid |
Undocumented |
| Instance Variable | _path |
Undocumented |
| Instance Variable | _reactor |
Undocumented |
| Instance Variable | _spawn |
A hook used for testing the spawning of child process. |
| Instance Variable | _uid |
Undocumented |
| Instance Variable | _use |
Undocumented |
def __init__(self, reactor, executable, args=(), env={}, path=None, uid=None, gid=None, usePTY=0, childFDs=None, errFlag=StandardErrorBehavior.LOG):
(source)
¶
See IReactorProcess.spawnProcess.
| Parameters | |
| reactor | Undocumented |
| executable | Undocumented |
| args | Undocumented |
| env | Undocumented |
| path | Undocumented |
| uid | Undocumented |
| gid | Undocumented |
| use | Undocumented |
| child | Undocumented |
errendpoints.StandardErrorBehavior | Determines if stderr should be logged. |
Implement IStreamClientEndpoint.connect to launch a child process and connect it to a protocol created by protocolFactory.
| Parameters | |
| protocol | A factory for an IProtocol provider which will be notified of all events related to the created process. |