38 #ifndef __UDPMASTERLISTENER_H__ 39 #define __UDPMASTERLISTENER_H__ 45 #include <QThreadPool> 47 #include <QHostAddress> 75 void stop() { mStopped =
true; }
81 { std::cout <<
"========= TEST RECEIVE SLOT ===========" << std::endl; }
94 static void bindUdpSocket(QUdpSocket& udpsocket,
int port)
throw(std::runtime_error);
96 int readClientUdpPort(QTcpSocket* clientConnection);
97 int sendUdpPort(QTcpSocket* clientConnection,
int udp_port);
121 QVector<JackTripWorker*>* mJTWorkers;
122 QThreadPool mThreadPool;
127 QHash<uint32_t, uint16_t> mActiveAddresPortPair;
130 volatile bool mStopped;
131 int mTotalRunningThreads;
136 #endif //__UDPMASTERLISTENER_H__
int releaseThread(int id)
Definition: UdpMasterListener.cpp:399
void signalRemoveThread(int id)
Definition: moc_UdpMasterListener.cpp:172
UdpMasterListener(int server_port=gServerUdpPort)
Definition: UdpMasterListener.cpp:56
quint32 uint32_t
Typedef for unsigned int. This type is guaranteed to be 32-bit.
Definition: jacktrip_types.h:73
Master UDP listener on the Server.
Definition: UdpMasterListener.h:62
void Listening()
Definition: moc_UdpMasterListener.cpp:160
void run()
Implements the Thread Loop. To start the thread, call start() ( DO NOT CALL run() ) ...
Definition: UdpMasterListener.cpp:104
const int gMaxThreads
Maximum Threads that can be run at the same time.
Definition: jacktrip_globals.h:134
virtual ~UdpMasterListener()
Definition: UdpMasterListener.cpp:87
void stop()
Stops the execution of the Thread.
Definition: UdpMasterListener.h:75
Prototype of the worker class that will be cloned through sending threads to the Thread Pool...
Definition: JackTripWorker.h:66
const int gServerUdpPort
Public well-known UDP port to where the clients will connect.
Definition: jacktrip_globals.h:137
void ClientAddressSet()
Definition: moc_UdpMasterListener.cpp:166
quint16 uint16_t
Typedef for unsigned short. This type is guaranteed to be 16-bit.
Definition: jacktrip_types.h:71