mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 20:17:16 +02:00
24 lines
814 B
Python
24 lines
814 B
Python
from zope.interface import Interface
|
|
|
|
class IStarter(Interface):
|
|
def startAMPProcess(ampChild, ampParent=None):
|
|
"""
|
|
@param ampChild: The AMP protocol spoken by the created child.
|
|
@type ampChild: L{twisted.protocols.amp.AMP}
|
|
|
|
@param ampParent: The AMP protocol spoken by the parent.
|
|
@type ampParent: L{twisted.protocols.amp.AMP}
|
|
"""
|
|
|
|
def startPythonProcess(prot, *args):
|
|
"""
|
|
@param prot: a L{protocol.ProcessProtocol} subclass
|
|
@type prot: L{protocol.ProcessProtocol}
|
|
|
|
@param args: a tuple of arguments that will be passed to the
|
|
child process.
|
|
|
|
@return: a tuple of the child process and the deferred finished.
|
|
finished triggers when the subprocess dies for any reason.
|
|
"""
|
|
|