| Home | Trees | Indices | Help |
|
|---|
|
|
IPC interface between a parent and a child process (used by both sides)
|
| Class Hierarchy for EmSubprocessIpc |
| Instance Methods | |||
| None |
|
||
| bool |
|
||
| None |
|
||
| None |
|
||
| None |
|
||
| None |
|
||
| tuple(string,bool) |
|
||
| None |
|
||
| tuple(string,bool) |
|
||
| None |
|
||
| Properties | |
| list(string)None |
receivedAsyncMessages Received asynchronous messages. |
| stringNone |
status The current status {Disconnected,Connecting,Connected,ConnectedPeerWaitsListening,Disconnecting} |
| Method Details |
Tries to stop the peer's event loop, waiting for my message. Allowed in Connecting and Connected states. Always returns true in the parent; can return false in the child if the parent also asked to speak simultaneously, to avoid deadlock. When true is returned, the status will be ConnectedPeerWaitsListening.
|
Starts the child process and sets up a connection.
|
Connects to the parent process.
|
Sends an unacknowledged message (allowed in Connecting, Connected and ConnectedPeerWaitsListening states).
|
Sends a message to the listening peer and waits for a reply if (dialogContinues). Returns the peer's reply and whether to continue the dialog, or the original arguments in case dialogContinues was already False. Allowed in the ConnectedPeerWaitsListening state. The status will remain ConnectedPeerWaitsListening only if dialogContinues was and remains true.
|
Blocks until the peer has asked to speak (which will return true) and has spoken something. You can also use this when askToSpeak() returned false to pick up the conversation instead of having peerStartedSpeaking() being emitted from the event loop. Returns the peer's reply and whether to continue the dialog. Allowed in Connecting and Connected states. The status will be Connected or ConnectedPeerWaitsListening.
|
| Property Details |
receivedAsyncMessagesReceived asynchronous messages. The user is always responsible to remove any message from the list.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Jun 26 10:16:21 2019 | http://epydoc.sourceforge.net |