OpenShot Library | OpenShotAudio 0.2.2
|
Public Member Functions | |
Connection (ChildProcessSlave &p, const String &pipeName, int timeout) | |
![]() | |
InterprocessConnection (bool callbacksOnMessageThread=true, uint32 magicMessageHeaderNumber=0xf2b49e2c) | |
Creates a connection. More... | |
virtual | ~InterprocessConnection () |
Destructor. More... | |
bool | connectToSocket (const String &hostName, int portNumber, int timeOutMillisecs) |
Tries to connect this object to a socket. More... | |
bool | connectToPipe (const String &pipeName, int pipeReceiveMessageTimeoutMs) |
Tries to connect the object to an existing named pipe. More... | |
bool | createPipe (const String &pipeName, int pipeReceiveMessageTimeoutMs, bool mustNotExist=false) |
Tries to create a new pipe for other processes to connect to. More... | |
void | disconnect () |
Disconnects and closes any currently-open sockets or pipes. More... | |
bool | isConnected () const |
True if a socket or pipe is currently active. More... | |
StreamingSocket * | getSocket () const noexcept |
Returns the socket that this connection is using (or nullptr if it uses a pipe). More... | |
NamedPipe * | getPipe () const noexcept |
Returns the pipe that this connection is using (or nullptr if it uses a socket). More... | |
String | getConnectedHostName () const |
Returns the name of the machine at the other end of this connection. More... | |
bool | sendMessage (const MemoryBlock &message) |
Tries to send a message to the other end of this connection. More... | |
virtual void | connectionMade ()=0 |
Called when the connection is first connected. More... | |
virtual void | connectionLost ()=0 |
Called when the connection is broken. More... | |
virtual void | messageReceived (const MemoryBlock &message)=0 |
Called when a message arrives. More... | |
Definition at line 183 of file juce_ConnectedChildProcess.cpp.
|
inline |
Definition at line 186 of file juce_ConnectedChildProcess.cpp.
|
inlineoverride |
Definition at line 195 of file juce_ConnectedChildProcess.cpp.