JackTrip
Signals | Public Member Functions | Public Attributes | List of all members
UdpHubListener Class Reference

Hub UDP listener on the Server. More...

#include <UdpHubListener.h>

Inheritance diagram for UdpHubListener:
Inheritance graph
[legend]
Collaboration diagram for UdpHubListener:
Collaboration graph
[legend]

Signals

void Listening ()
 
void ClientAddressSet ()
 
void signalRemoveThread (int id)
 

Public Member Functions

 UdpHubListener (int server_port=gServerUdpPort, int server_udp_port=NULL)
 
virtual ~UdpHubListener ()
 
void run ()
 Implements the Thread Loop. To start the thread, call start() ( DO NOT CALL run() ) More...
 
void stop ()
 Stops the execution of the Thread. More...
 
int releaseThread (int id)
 
void setConnectDefaultAudioPorts (bool connectDefaultAudioPorts)
 
void setSettings (Settings *s)
 
SettingsgetSettings () const
 
void setHubPatch (unsigned int p)
 
unsigned int getHubPatch ()
 
void setUnderRunMode (JackTrip::underrunModeT UnderRunMode)
 
void setBufferQueueLength (int BufferQueueLength)
 

Public Attributes

unsigned int mHubPatch
 

Detailed Description

Hub UDP listener on the Server.

This creates a server that will listen on the well know port (the server port) and will spawn JackTrip threads into the Thread pool. Clients request a connection.

Constructor & Destructor Documentation

◆ UdpHubListener()

UdpHubListener::UdpHubListener ( int  server_port = gServerUdpPort,
int  server_udp_port = NULL 
)

◆ ~UdpHubListener()

UdpHubListener::~UdpHubListener ( )
virtual

Member Function Documentation

◆ ClientAddressSet

void UdpHubListener::ClientAddressSet ( )
signal

◆ getHubPatch()

unsigned int UdpHubListener::getHubPatch ( )
inline

◆ getSettings()

Settings* UdpHubListener::getSettings ( ) const
inline

◆ Listening

void UdpHubListener::Listening ( )
signal

◆ releaseThread()

int UdpHubListener::releaseThread ( int  id)
Todo:
Check if we really need to return an argument here

◆ run()

void UdpHubListener::run ( )

Implements the Thread Loop. To start the thread, call start() ( DO NOT CALL run() )

Todo:
temp default to 1 channel

◆ setBufferQueueLength()

void UdpHubListener::setBufferQueueLength ( int  BufferQueueLength)
inline

◆ setConnectDefaultAudioPorts()

void UdpHubListener::setConnectDefaultAudioPorts ( bool  connectDefaultAudioPorts)
inline

◆ setHubPatch()

void UdpHubListener::setHubPatch ( unsigned int  p)
inline

◆ setSettings()

void UdpHubListener::setSettings ( Settings s)
inline

◆ setUnderRunMode()

void UdpHubListener::setUnderRunMode ( JackTrip::underrunModeT  UnderRunMode)
inline

◆ signalRemoveThread

void UdpHubListener::signalRemoveThread ( int  id)
signal

◆ stop()

void UdpHubListener::stop ( )
inline

Stops the execution of the Thread.

Member Data Documentation

◆ mHubPatch

unsigned int UdpHubListener::mHubPatch

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