LMMS
Loading...
Searching...
No Matches
ChildProcessWorker::Connection Struct Reference
Inheritance diagram for ChildProcessWorker::Connection:
juce::InterprocessConnection juce::ChildProcessPingThread

Public Member Functions

 Connection (ChildProcessWorker &p, const String &pipeName, int timeout)
 ~Connection () override
Public Member Functions inherited from juce::InterprocessConnection
 InterprocessConnection (bool callbacksOnMessageThread=true, uint32 magicMessageHeaderNumber=0xf2b49e2c)
virtual ~InterprocessConnection ()
bool connectToSocket (const String &hostName, int portNumber, int timeOutMillisecs)
bool connectToPipe (const String &pipeName, int pipeReceiveMessageTimeoutMs)
bool createPipe (const String &pipeName, int pipeReceiveMessageTimeoutMs, bool mustNotExist=false)
void disconnect (int timeoutMs=-1, Notify notify=Notify::yes)
bool isConnected () const
StreamingSocketgetSocket () const noexcept
NamedPipegetPipe () const noexcept
String getConnectedHostName () const
bool sendMessage (const MemoryBlock &message)
virtual void messageReceived (const MemoryBlock &message)=0

Private Member Functions

void connectionMade () override
void connectionLost () override
bool sendPingMessage (const MemoryBlock &m) override
void pingFailed () override
void messageReceived (const MemoryBlock &m) override
Private Member Functions inherited from juce::ChildProcessPingThread
 ChildProcessPingThread (int timeout)
void startPinging ()
void pingReceived () noexcept
void triggerConnectionLostMessage ()
virtual bool sendPingMessage (const MemoryBlock &)=0
void cancelPendingUpdate () noexcept
Private Member Functions inherited from juce::Thread
 Thread (const String &threadName, size_t threadStackSize=0)
virtual ~Thread ()
void startThread ()
void startThread (int priority)
bool stopThread (int timeOutMilliseconds)
bool isThreadRunning () const
void signalThreadShouldExit ()
bool threadShouldExit () const
bool waitForThreadToExit (int timeOutMilliseconds) const
void addListener (Listener *)
void removeListener (Listener *)
bool setPriority (int priority)
void setAffinityMask (uint32 affinityMask)
bool wait (int timeOutMilliseconds) const
void notify () const
ThreadID getThreadId () const noexcept
const StringgetThreadName () const noexcept

Private Attributes

ChildProcessWorker & owner
Private Attributes inherited from juce::ChildProcessPingThread
int timeoutMs

Additional Inherited Members

Public Types inherited from juce::InterprocessConnection
enum class  Notify { no , yes }
Private Types inherited from juce::Thread
enum  { realtimeAudioPriority = -1 }
using ThreadID = void*
Static Private Member Functions inherited from juce::Thread
static void launch (std::function< void()> functionToRun)
static bool currentThreadShouldExit ()
static bool setCurrentThreadPriority (int priority)
static void JUCE_CALLTYPE setCurrentThreadAffinityMask (uint32 affinityMask)
static void JUCE_CALLTYPE sleep (int milliseconds)
static void JUCE_CALLTYPE yield ()
static ThreadID JUCE_CALLTYPE getCurrentThreadId ()
static Thread *JUCE_CALLTYPE getCurrentThread ()
static void JUCE_CALLTYPE setCurrentThreadName (const String &newThreadName)

Constructor & Destructor Documentation

◆ Connection()

ChildProcessWorker::Connection::Connection ( ChildProcessWorker & p,
const String & pipeName,
int timeout )
inline

◆ ~Connection()

ChildProcessWorker::Connection::~Connection ( )
inlineoverride

Member Function Documentation

◆ connectionLost()

void ChildProcessWorker::Connection::connectionLost ( )
inlineoverrideprivatevirtual

Called when the connection is broken.

If the connection was created with the callbacksOnMessageThread flag set, then this will be called on the message thread; otherwise it will be called on a server thread.

Implements juce::InterprocessConnection.

◆ connectionMade()

void ChildProcessWorker::Connection::connectionMade ( )
inlineoverrideprivatevirtual

Called when the connection is first connected.

If the connection was created with the callbacksOnMessageThread flag set, then this will be called on the message thread; otherwise it will be called on a server thread.

Implements juce::InterprocessConnection.

◆ messageReceived()

void ChildProcessWorker::Connection::messageReceived ( const MemoryBlock & m)
inlineoverrideprivate

◆ pingFailed()

void ChildProcessWorker::Connection::pingFailed ( )
inlineoverrideprivatevirtual

◆ sendPingMessage()

bool ChildProcessWorker::Connection::sendPingMessage ( const MemoryBlock & m)
inlineoverrideprivate

Member Data Documentation

◆ owner

ChildProcessWorker& ChildProcessWorker::Connection::owner
private

The documentation for this struct was generated from the following file: