openshot-audio  0.1.2
Public Member Functions | Protected Member Functions | List of all members
juce::InterprocessConnectionServer Class Referenceabstract

#include <juce_events.h>

Inheritance diagram for juce::InterprocessConnectionServer:
juce::Thread

Public Member Functions

 InterprocessConnectionServer ()
 
 ~InterprocessConnectionServer ()
 
bool beginWaitingForSocket (int portNumber)
 
void stop ()
 

Protected Member Functions

virtual InterprocessConnectioncreateConnectionObject ()=0
 

Detailed Description

An object that waits for client sockets to connect to a port on this host, and creates InterprocessConnection objects for each one.

To use this, create a class derived from it which implements the createConnectionObject() method, so that it creates suitable connection objects for each client that tries to connect.

See also
InterprocessConnection

Constructor & Destructor Documentation

InterprocessConnectionServer::InterprocessConnectionServer ( )

Creates an uninitialised server object.

InterprocessConnectionServer::~InterprocessConnectionServer ( )

Destructor.

Member Function Documentation

bool InterprocessConnectionServer::beginWaitingForSocket ( int  portNumber)

Starts an internal thread which listens on the given port number.

While this is running, in another process tries to connect with the InterprocessConnection::connectToSocket() method, this object will call createConnectionObject() to create a connection to that client.

Use stop() to stop the thread running.

See also
createConnectionObject, stop
virtual InterprocessConnection* juce::InterprocessConnectionServer::createConnectionObject ( )
protectedpure virtual

Creates a suitable connection object for a client process that wants to connect to this one.

This will be called by the listener thread when a client process tries to connect, and must return a new InterprocessConnection object that will then run as this end of the connection.

See also
InterprocessConnection
void InterprocessConnectionServer::stop ( )

Terminates the listener thread, if it's active.

See also
beginWaitingForSocket

The documentation for this class was generated from the following files: