2011-04-25 12:51:57 +02:00
|
|
|
/******************************************************************************\
|
2015-02-04 19:17:23 +01:00
|
|
|
* Copyright (c) 2004-2015
|
2011-04-25 12:51:57 +02:00
|
|
|
*
|
|
|
|
* Author(s):
|
|
|
|
* Volker Fischer
|
|
|
|
*
|
|
|
|
******************************************************************************
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it under
|
|
|
|
* the terms of the GNU General Public License as published by the Free Software
|
|
|
|
* Foundation; either version 2 of the License, or (at your option) any later
|
|
|
|
* version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
|
|
* details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with
|
|
|
|
* this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*
|
|
|
|
\******************************************************************************/
|
|
|
|
|
|
|
|
#if !defined ( SERVER_HOIHGE7LOKIH83JH8_3_43445KJIUHF1912__INCLUDED_ )
|
|
|
|
#define SERVER_HOIHGE7LOKIH83JH8_3_43445KJIUHF1912__INCLUDED_
|
|
|
|
|
2013-01-02 21:41:04 +01:00
|
|
|
#include <QObject>
|
|
|
|
#include <QTimer>
|
|
|
|
#include <QDateTime>
|
|
|
|
#include <QHostAddress>
|
2014-07-26 07:58:01 +02:00
|
|
|
#ifdef USE_LEGACY_CELT
|
|
|
|
# include "cc6_celt.h"
|
|
|
|
#endif
|
|
|
|
#ifdef USE_OPUS_SHARED_LIB
|
|
|
|
# include "opus/opus_custom.h"
|
|
|
|
#else
|
|
|
|
# include "opus_custom.h"
|
|
|
|
#endif
|
2011-04-25 12:51:57 +02:00
|
|
|
#include "global.h"
|
|
|
|
#include "socket.h"
|
|
|
|
#include "channel.h"
|
|
|
|
#include "util.h"
|
|
|
|
#include "serverlogging.h"
|
|
|
|
#include "serverlist.h"
|
|
|
|
|
|
|
|
|
|
|
|
/* Definitions ****************************************************************/
|
|
|
|
// no valid channel number
|
|
|
|
#define INVALID_CHANNEL_ID ( MAX_NUM_CHANNELS + 1 )
|
|
|
|
|
|
|
|
|
|
|
|
/* Classes ********************************************************************/
|
2013-03-03 22:32:42 +01:00
|
|
|
#if ( defined ( WIN32 ) || defined ( _WIN32 ) )
|
|
|
|
// using QTimer for Windows
|
|
|
|
class CHighPrecisionTimer : public QObject
|
2011-04-25 12:51:57 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
CHighPrecisionTimer();
|
|
|
|
|
|
|
|
void Start();
|
|
|
|
void Stop();
|
2013-03-03 22:32:42 +01:00
|
|
|
bool isActive() const { return Timer.isActive(); }
|
2011-04-25 12:51:57 +02:00
|
|
|
|
|
|
|
protected:
|
2013-03-03 22:32:42 +01:00
|
|
|
QTimer Timer;
|
|
|
|
CVector<int> veciTimeOutIntervals;
|
|
|
|
int iCurPosInVector;
|
|
|
|
int iIntervalCounter;
|
2011-04-25 12:51:57 +02:00
|
|
|
|
2013-03-03 22:32:42 +01:00
|
|
|
public slots:
|
|
|
|
void OnTimer();
|
2011-04-25 12:51:57 +02:00
|
|
|
|
|
|
|
signals:
|
|
|
|
void timeout();
|
|
|
|
};
|
|
|
|
#else
|
2013-03-03 22:32:42 +01:00
|
|
|
// using mach timers for Mac and nanosleep for Linux
|
2013-12-27 17:01:35 +01:00
|
|
|
# if defined ( __APPLE__ ) || defined ( __MACOSX )
|
|
|
|
# include <mach/mach.h>
|
|
|
|
# include <mach/mach_error.h>
|
|
|
|
# include <mach/mach_time.h>
|
|
|
|
# else
|
|
|
|
# include <sys/time.h>
|
|
|
|
# endif
|
2013-03-03 22:32:42 +01:00
|
|
|
|
|
|
|
class CHighPrecisionTimer : public QThread
|
2011-04-25 12:51:57 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
CHighPrecisionTimer();
|
|
|
|
|
|
|
|
void Start();
|
|
|
|
void Stop();
|
2013-03-03 22:32:42 +01:00
|
|
|
bool isActive() { return bRun; }
|
2011-04-25 12:51:57 +02:00
|
|
|
|
|
|
|
protected:
|
2013-03-03 22:32:42 +01:00
|
|
|
virtual void run();
|
2011-04-25 12:51:57 +02:00
|
|
|
|
2013-03-03 22:32:42 +01:00
|
|
|
bool bRun;
|
|
|
|
|
2013-12-27 17:01:35 +01:00
|
|
|
# if defined ( __APPLE__ ) || defined ( __MACOSX )
|
2013-03-03 22:32:42 +01:00
|
|
|
uint64_t Delay;
|
|
|
|
uint64_t NextEnd;
|
2013-12-27 17:01:35 +01:00
|
|
|
# else
|
2013-03-04 17:11:37 +01:00
|
|
|
long Delay;
|
2013-03-03 22:32:42 +01:00
|
|
|
timespec NextEnd;
|
2013-12-27 17:01:35 +01:00
|
|
|
# endif
|
2011-04-25 12:51:57 +02:00
|
|
|
|
|
|
|
signals:
|
|
|
|
void timeout();
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
class CServer : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2015-01-23 20:43:18 +01:00
|
|
|
CServer ( const int iNewMaxNumChan,
|
|
|
|
const QString& strLoggingFileName,
|
|
|
|
const quint16 iPortNumber,
|
|
|
|
const QString& strHTMLStatusFileName,
|
|
|
|
const QString& strHistoryFileName,
|
|
|
|
const QString& strServerNameForHTMLStatusFile,
|
|
|
|
const QString& strCentralServer,
|
|
|
|
const QString& strServerInfo,
|
|
|
|
const QString& strNewWelcomeMessage,
|
|
|
|
const bool bNCentServPingServerInList,
|
|
|
|
const ELicenceType eNLicenceType );
|
2011-04-25 12:51:57 +02:00
|
|
|
|
|
|
|
void Start();
|
|
|
|
void Stop();
|
|
|
|
bool IsRunning() { return HighPrecisionTimer.isActive(); }
|
|
|
|
|
2014-02-16 09:12:07 +01:00
|
|
|
bool PutAudioData ( const CVector<uint8_t>& vecbyRecBuf,
|
|
|
|
const int iNumBytesRead,
|
|
|
|
const CHostAddress& HostAdr,
|
|
|
|
int& iCurChanID );
|
2011-04-25 12:51:57 +02:00
|
|
|
|
|
|
|
void GetConCliParam ( CVector<CHostAddress>& vecHostAddresses,
|
|
|
|
CVector<QString>& vecsName,
|
|
|
|
CVector<int>& veciJitBufNumFrames,
|
|
|
|
CVector<int>& veciNetwFrameSizeFact );
|
|
|
|
|
2011-04-30 15:01:26 +02:00
|
|
|
|
|
|
|
// Server list management --------------------------------------------------
|
|
|
|
void UpdateServerList() { ServerListManager.Update(); }
|
|
|
|
|
2011-05-04 09:15:50 +02:00
|
|
|
void UnregisterSlaveServer() { ServerListManager.SlaveServerUnregister(); }
|
|
|
|
|
2011-04-30 15:01:26 +02:00
|
|
|
void SetServerListEnabled ( const bool bState )
|
|
|
|
{ ServerListManager.SetEnabled ( bState ); }
|
|
|
|
|
|
|
|
bool GetServerListEnabled() { return ServerListManager.GetEnabled(); }
|
|
|
|
|
|
|
|
void SetServerListCentralServerAddress ( const QString& sNCentServAddr )
|
|
|
|
{ ServerListManager.SetCentralServerAddress ( sNCentServAddr ); }
|
|
|
|
|
|
|
|
QString GetServerListCentralServerAddress()
|
|
|
|
{ return ServerListManager.GetCentralServerAddress(); }
|
|
|
|
|
2011-04-30 21:51:49 +02:00
|
|
|
void SetUseDefaultCentralServerAddress ( const bool bNUDCSeAddr )
|
|
|
|
{ ServerListManager.SetUseDefaultCentralServerAddress ( bNUDCSeAddr ); }
|
|
|
|
|
|
|
|
bool GetUseDefaultCentralServerAddress()
|
|
|
|
{ return ServerListManager.GetUseDefaultCentralServerAddress(); }
|
|
|
|
|
2011-04-25 18:16:31 +02:00
|
|
|
void SetServerName ( const QString& strNewName )
|
|
|
|
{ ServerListManager.SetServerName ( strNewName ); }
|
|
|
|
|
|
|
|
QString GetServerName() { return ServerListManager.GetServerName(); }
|
|
|
|
|
|
|
|
void SetServerCity ( const QString& strNewCity )
|
|
|
|
{ ServerListManager.SetServerCity ( strNewCity ); }
|
|
|
|
|
|
|
|
QString GetServerCity() { return ServerListManager.GetServerCity(); }
|
|
|
|
|
|
|
|
void SetServerCountry ( const QLocale::Country eNewCountry )
|
|
|
|
{ ServerListManager.SetServerCountry ( eNewCountry ); }
|
|
|
|
|
|
|
|
QLocale::Country GetServerCountry()
|
|
|
|
{ return ServerListManager.GetServerCountry(); }
|
|
|
|
|
2011-05-08 17:01:20 +02:00
|
|
|
|
|
|
|
// GUI settings ------------------------------------------------------------
|
|
|
|
void SetAutoRunMinimized ( const bool NAuRuMin )
|
|
|
|
{ bAutoRunMinimized = NAuRuMin; }
|
|
|
|
|
|
|
|
bool GetAutoRunMinimized() { return bAutoRunMinimized; }
|
|
|
|
|
2011-04-25 12:51:57 +02:00
|
|
|
protected:
|
|
|
|
// access functions for actual channels
|
|
|
|
bool IsConnected ( const int iChanNum )
|
|
|
|
{ return vecChannels[iChanNum].IsConnected(); }
|
|
|
|
|
|
|
|
void StartStatusHTMLFileWriting ( const QString& strNewFileName,
|
|
|
|
const QString& strNewServerNameWithPort );
|
|
|
|
|
|
|
|
int GetFreeChan();
|
2014-01-08 22:24:37 +01:00
|
|
|
int FindChannel ( const CHostAddress& CheckAddr );
|
2011-04-25 12:51:57 +02:00
|
|
|
int GetNumberOfConnectedClients();
|
2013-02-11 16:21:53 +01:00
|
|
|
CVector<CChannelInfo> CreateChannelList();
|
2011-04-25 12:51:57 +02:00
|
|
|
void CreateAndSendChanListForAllConChannels();
|
|
|
|
void CreateAndSendChanListForThisChan ( const int iCurChanID );
|
|
|
|
void CreateAndSendChatTextForAllConChannels ( const int iCurChanID,
|
|
|
|
const QString& strChatText );
|
|
|
|
void WriteHTMLChannelList();
|
|
|
|
|
2014-01-12 10:48:49 +01:00
|
|
|
void ProcessData ( const CVector<CVector<int16_t> >& vecvecsData,
|
2014-01-08 22:24:37 +01:00
|
|
|
const CVector<double>& vecdGains,
|
|
|
|
const CVector<int>& vecNumAudioChannels,
|
2014-01-12 10:48:49 +01:00
|
|
|
CVector<int16_t>& vecsOutData,
|
|
|
|
const int iCurNumAudChan,
|
|
|
|
const int iNumClients );
|
2011-04-25 12:51:57 +02:00
|
|
|
|
2014-01-08 22:24:37 +01:00
|
|
|
virtual void customEvent ( QEvent* pEvent );
|
2011-04-25 12:51:57 +02:00
|
|
|
|
|
|
|
// do not use the vector class since CChannel does not have appropriate
|
|
|
|
// copy constructor/operator
|
2014-01-12 10:48:49 +01:00
|
|
|
CChannel vecChannels[MAX_NUM_CHANNELS];
|
|
|
|
int iMaxNumChannels;
|
|
|
|
CProtocol ConnLessProtocol;
|
|
|
|
QMutex Mutex;
|
2011-04-25 12:51:57 +02:00
|
|
|
|
|
|
|
// audio encoder/decoder
|
2014-07-26 07:58:01 +02:00
|
|
|
#ifdef USE_LEGACY_CELT
|
2014-01-12 10:48:49 +01:00
|
|
|
cc6_CELTMode* CeltModeMono[MAX_NUM_CHANNELS];
|
|
|
|
cc6_CELTEncoder* CeltEncoderMono[MAX_NUM_CHANNELS];
|
|
|
|
cc6_CELTDecoder* CeltDecoderMono[MAX_NUM_CHANNELS];
|
|
|
|
cc6_CELTMode* CeltModeStereo[MAX_NUM_CHANNELS];
|
|
|
|
cc6_CELTEncoder* CeltEncoderStereo[MAX_NUM_CHANNELS];
|
|
|
|
cc6_CELTDecoder* CeltDecoderStereo[MAX_NUM_CHANNELS];
|
2014-07-26 07:58:01 +02:00
|
|
|
#endif
|
2014-01-12 10:48:49 +01:00
|
|
|
OpusCustomMode* OpusMode[MAX_NUM_CHANNELS];
|
|
|
|
OpusCustomEncoder* OpusEncoderMono[MAX_NUM_CHANNELS];
|
|
|
|
OpusCustomDecoder* OpusDecoderMono[MAX_NUM_CHANNELS];
|
|
|
|
OpusCustomEncoder* OpusEncoderStereo[MAX_NUM_CHANNELS];
|
|
|
|
OpusCustomDecoder* OpusDecoderStereo[MAX_NUM_CHANNELS];
|
|
|
|
|
|
|
|
CVector<QString> vstrChatColors;
|
|
|
|
CVector<int> vecChanIDsCurConChan;
|
|
|
|
|
|
|
|
CVector<CVector<double> > vecvecdGains;
|
|
|
|
CVector<CVector<int16_t> > vecvecsData;
|
|
|
|
CVector<int> vecNumAudioChannels;
|
|
|
|
CVector<int16_t> vecsSendData;
|
|
|
|
CVector<uint8_t> vecbyCodedData;
|
2011-04-25 12:51:57 +02:00
|
|
|
|
|
|
|
// actual working objects
|
2014-02-16 09:12:07 +01:00
|
|
|
CHighPrioSocket Socket;
|
2011-04-25 12:51:57 +02:00
|
|
|
|
|
|
|
// logging
|
2014-01-12 10:48:49 +01:00
|
|
|
CServerLogging Logging;
|
2011-04-25 12:51:57 +02:00
|
|
|
|
|
|
|
// HTML file server status
|
2014-01-12 10:48:49 +01:00
|
|
|
bool bWriteStatusHTMLFile;
|
|
|
|
QString strServerHTMLFileListName;
|
|
|
|
QString strServerNameWithPort;
|
2011-04-25 12:51:57 +02:00
|
|
|
|
2014-01-12 10:48:49 +01:00
|
|
|
CHighPrecisionTimer HighPrecisionTimer;
|
2011-04-25 12:51:57 +02:00
|
|
|
|
|
|
|
// server list
|
2014-01-12 10:48:49 +01:00
|
|
|
CServerListManager ServerListManager;
|
2011-04-25 12:51:57 +02:00
|
|
|
|
2011-05-08 17:01:20 +02:00
|
|
|
// GUI settings
|
2014-01-12 10:48:49 +01:00
|
|
|
bool bAutoRunMinimized;
|
2011-05-08 17:01:20 +02:00
|
|
|
|
2013-02-11 21:24:38 +01:00
|
|
|
// messaging
|
2014-01-12 10:48:49 +01:00
|
|
|
QString strWelcomeMessage;
|
2015-01-23 20:43:18 +01:00
|
|
|
ELicenceType eLicenceType;
|
2013-02-11 21:24:38 +01:00
|
|
|
|
2011-05-06 22:18:20 +02:00
|
|
|
signals:
|
|
|
|
void Started();
|
|
|
|
void Stopped();
|
|
|
|
|
2011-04-25 12:51:57 +02:00
|
|
|
public slots:
|
|
|
|
void OnTimer();
|
|
|
|
|
2014-02-16 09:12:07 +01:00
|
|
|
void OnSendProtMessage ( int iChID,
|
|
|
|
CVector<uint8_t> vecMessage );
|
|
|
|
|
|
|
|
void OnNewConnection ( int iChID,
|
|
|
|
CHostAddress RecHostAddr );
|
|
|
|
|
|
|
|
void OnServerFull ( CHostAddress RecHostAddr );
|
|
|
|
|
|
|
|
void OnSendCLProtMessage ( CHostAddress InetAddr,
|
|
|
|
CVector<uint8_t> vecMessage );
|
|
|
|
|
|
|
|
void OnProtcolCLMessageReceived ( int iRecID,
|
|
|
|
CVector<uint8_t> vecbyMesBodyData,
|
|
|
|
CHostAddress RecHostAddr );
|
|
|
|
|
|
|
|
void OnProtcolMessageReceived ( int iRecCounter,
|
|
|
|
int iRecID,
|
|
|
|
CVector<uint8_t> vecbyMesBodyData,
|
|
|
|
CHostAddress RecHostAddr );
|
2011-05-23 21:06:02 +02:00
|
|
|
|
2011-05-24 21:40:57 +02:00
|
|
|
void OnCLPingReceived ( CHostAddress InetAddr, int iMs )
|
|
|
|
{ ConnLessProtocol.CreateCLPingMes ( InetAddr, iMs ); }
|
|
|
|
|
2011-05-24 20:44:51 +02:00
|
|
|
void OnCLPingWithNumClientsReceived ( CHostAddress InetAddr,
|
|
|
|
int iMs,
|
|
|
|
int )
|
2011-04-25 12:51:57 +02:00
|
|
|
{
|
|
|
|
ConnLessProtocol.CreateCLPingWithNumClientsMes ( InetAddr,
|
|
|
|
iMs,
|
|
|
|
GetNumberOfConnectedClients() );
|
|
|
|
}
|
|
|
|
|
|
|
|
void OnCLSendEmptyMes ( CHostAddress TargetInetAddr )
|
|
|
|
{
|
|
|
|
// only send empty message if server list is enabled and this is not
|
|
|
|
// the central server
|
|
|
|
if ( ServerListManager.GetEnabled() &&
|
|
|
|
!ServerListManager.GetIsCentralServer() )
|
|
|
|
{
|
|
|
|
ConnLessProtocol.CreateCLEmptyMes ( TargetInetAddr );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void OnCLReqServerList ( CHostAddress InetAddr )
|
2011-05-04 09:00:43 +02:00
|
|
|
{ ServerListManager.CentralServerQueryServerList ( InetAddr ); }
|
2011-04-25 12:51:57 +02:00
|
|
|
|
2014-02-21 22:25:26 +01:00
|
|
|
void OnCLReqVersionAndOS ( CHostAddress InetAddr )
|
|
|
|
{ ConnLessProtocol.CreateCLVersionAndOSMes ( InetAddr ); }
|
|
|
|
|
2011-04-25 12:51:57 +02:00
|
|
|
void OnCLRegisterServerReceived ( CHostAddress InetAddr,
|
|
|
|
CServerCoreInfo ServerInfo )
|
|
|
|
{
|
2011-05-04 09:00:43 +02:00
|
|
|
ServerListManager.CentralServerRegisterServer ( InetAddr, ServerInfo );
|
2011-04-25 12:51:57 +02:00
|
|
|
}
|
|
|
|
|
2011-05-03 22:37:06 +02:00
|
|
|
void OnCLUnregisterServerReceived ( CHostAddress InetAddr )
|
|
|
|
{
|
2011-05-04 09:00:43 +02:00
|
|
|
ServerListManager.CentralServerUnregisterServer ( InetAddr );
|
2011-05-03 22:37:06 +02:00
|
|
|
}
|
|
|
|
|
2011-05-22 11:47:09 +02:00
|
|
|
void OnCLDisconnection ( CHostAddress InetAddr );
|
|
|
|
|
2011-04-25 12:51:57 +02:00
|
|
|
|
|
|
|
// CODE TAG: MAX_NUM_CHANNELS_TAG
|
|
|
|
// make sure we have MAX_NUM_CHANNELS connections!!!
|
|
|
|
// send message
|
|
|
|
void OnSendProtMessCh0 ( CVector<uint8_t> mess ) { OnSendProtMessage ( 0, mess ); }
|
|
|
|
void OnSendProtMessCh1 ( CVector<uint8_t> mess ) { OnSendProtMessage ( 1, mess ); }
|
|
|
|
void OnSendProtMessCh2 ( CVector<uint8_t> mess ) { OnSendProtMessage ( 2, mess ); }
|
|
|
|
void OnSendProtMessCh3 ( CVector<uint8_t> mess ) { OnSendProtMessage ( 3, mess ); }
|
|
|
|
void OnSendProtMessCh4 ( CVector<uint8_t> mess ) { OnSendProtMessage ( 4, mess ); }
|
|
|
|
void OnSendProtMessCh5 ( CVector<uint8_t> mess ) { OnSendProtMessage ( 5, mess ); }
|
|
|
|
void OnSendProtMessCh6 ( CVector<uint8_t> mess ) { OnSendProtMessage ( 6, mess ); }
|
|
|
|
void OnSendProtMessCh7 ( CVector<uint8_t> mess ) { OnSendProtMessage ( 7, mess ); }
|
|
|
|
void OnSendProtMessCh8 ( CVector<uint8_t> mess ) { OnSendProtMessage ( 8, mess ); }
|
|
|
|
void OnSendProtMessCh9 ( CVector<uint8_t> mess ) { OnSendProtMessage ( 9, mess ); }
|
|
|
|
void OnSendProtMessCh10 ( CVector<uint8_t> mess ) { OnSendProtMessage ( 10, mess ); }
|
|
|
|
void OnSendProtMessCh11 ( CVector<uint8_t> mess ) { OnSendProtMessage ( 11, mess ); }
|
2013-09-08 22:15:21 +02:00
|
|
|
void OnSendProtMessCh12 ( CVector<uint8_t> mess ) { OnSendProtMessage ( 12, mess ); }
|
|
|
|
void OnSendProtMessCh13 ( CVector<uint8_t> mess ) { OnSendProtMessage ( 13, mess ); }
|
|
|
|
void OnSendProtMessCh14 ( CVector<uint8_t> mess ) { OnSendProtMessage ( 14, mess ); }
|
|
|
|
void OnSendProtMessCh15 ( CVector<uint8_t> mess ) { OnSendProtMessage ( 15, mess ); }
|
|
|
|
void OnSendProtMessCh16 ( CVector<uint8_t> mess ) { OnSendProtMessage ( 16, mess ); }
|
|
|
|
void OnSendProtMessCh17 ( CVector<uint8_t> mess ) { OnSendProtMessage ( 17, mess ); }
|
|
|
|
void OnSendProtMessCh18 ( CVector<uint8_t> mess ) { OnSendProtMessage ( 18, mess ); }
|
|
|
|
void OnSendProtMessCh19 ( CVector<uint8_t> mess ) { OnSendProtMessage ( 19, mess ); }
|
2011-04-25 12:51:57 +02:00
|
|
|
|
|
|
|
void OnReqConnClientsListCh0() { CreateAndSendChanListForThisChan ( 0 ); }
|
|
|
|
void OnReqConnClientsListCh1() { CreateAndSendChanListForThisChan ( 1 ); }
|
|
|
|
void OnReqConnClientsListCh2() { CreateAndSendChanListForThisChan ( 2 ); }
|
|
|
|
void OnReqConnClientsListCh3() { CreateAndSendChanListForThisChan ( 3 ); }
|
|
|
|
void OnReqConnClientsListCh4() { CreateAndSendChanListForThisChan ( 4 ); }
|
|
|
|
void OnReqConnClientsListCh5() { CreateAndSendChanListForThisChan ( 5 ); }
|
|
|
|
void OnReqConnClientsListCh6() { CreateAndSendChanListForThisChan ( 6 ); }
|
|
|
|
void OnReqConnClientsListCh7() { CreateAndSendChanListForThisChan ( 7 ); }
|
|
|
|
void OnReqConnClientsListCh8() { CreateAndSendChanListForThisChan ( 8 ); }
|
|
|
|
void OnReqConnClientsListCh9() { CreateAndSendChanListForThisChan ( 9 ); }
|
|
|
|
void OnReqConnClientsListCh10() { CreateAndSendChanListForThisChan ( 10 ); }
|
|
|
|
void OnReqConnClientsListCh11() { CreateAndSendChanListForThisChan ( 11 ); }
|
2013-09-08 22:15:21 +02:00
|
|
|
void OnReqConnClientsListCh12() { CreateAndSendChanListForThisChan ( 12 ); }
|
|
|
|
void OnReqConnClientsListCh13() { CreateAndSendChanListForThisChan ( 13 ); }
|
|
|
|
void OnReqConnClientsListCh14() { CreateAndSendChanListForThisChan ( 14 ); }
|
|
|
|
void OnReqConnClientsListCh15() { CreateAndSendChanListForThisChan ( 15 ); }
|
|
|
|
void OnReqConnClientsListCh16() { CreateAndSendChanListForThisChan ( 16 ); }
|
|
|
|
void OnReqConnClientsListCh17() { CreateAndSendChanListForThisChan ( 17 ); }
|
|
|
|
void OnReqConnClientsListCh18() { CreateAndSendChanListForThisChan ( 18 ); }
|
|
|
|
void OnReqConnClientsListCh19() { CreateAndSendChanListForThisChan ( 19 ); }
|
2011-04-25 12:51:57 +02:00
|
|
|
|
2013-02-11 16:21:53 +01:00
|
|
|
void OnChanInfoHasChangedCh0() { CreateAndSendChanListForAllConChannels(); }
|
|
|
|
void OnChanInfoHasChangedCh1() { CreateAndSendChanListForAllConChannels(); }
|
|
|
|
void OnChanInfoHasChangedCh2() { CreateAndSendChanListForAllConChannels(); }
|
|
|
|
void OnChanInfoHasChangedCh3() { CreateAndSendChanListForAllConChannels(); }
|
|
|
|
void OnChanInfoHasChangedCh4() { CreateAndSendChanListForAllConChannels(); }
|
|
|
|
void OnChanInfoHasChangedCh5() { CreateAndSendChanListForAllConChannels(); }
|
|
|
|
void OnChanInfoHasChangedCh6() { CreateAndSendChanListForAllConChannels(); }
|
|
|
|
void OnChanInfoHasChangedCh7() { CreateAndSendChanListForAllConChannels(); }
|
|
|
|
void OnChanInfoHasChangedCh8() { CreateAndSendChanListForAllConChannels(); }
|
|
|
|
void OnChanInfoHasChangedCh9() { CreateAndSendChanListForAllConChannels(); }
|
|
|
|
void OnChanInfoHasChangedCh10() { CreateAndSendChanListForAllConChannels(); }
|
|
|
|
void OnChanInfoHasChangedCh11() { CreateAndSendChanListForAllConChannels(); }
|
2013-09-08 22:15:21 +02:00
|
|
|
void OnChanInfoHasChangedCh12() { CreateAndSendChanListForAllConChannels(); }
|
|
|
|
void OnChanInfoHasChangedCh13() { CreateAndSendChanListForAllConChannels(); }
|
|
|
|
void OnChanInfoHasChangedCh14() { CreateAndSendChanListForAllConChannels(); }
|
|
|
|
void OnChanInfoHasChangedCh15() { CreateAndSendChanListForAllConChannels(); }
|
|
|
|
void OnChanInfoHasChangedCh16() { CreateAndSendChanListForAllConChannels(); }
|
|
|
|
void OnChanInfoHasChangedCh17() { CreateAndSendChanListForAllConChannels(); }
|
|
|
|
void OnChanInfoHasChangedCh18() { CreateAndSendChanListForAllConChannels(); }
|
|
|
|
void OnChanInfoHasChangedCh19() { CreateAndSendChanListForAllConChannels(); }
|
2011-04-25 12:51:57 +02:00
|
|
|
|
|
|
|
void OnChatTextReceivedCh0 ( QString strChatText ) { CreateAndSendChatTextForAllConChannels ( 0, strChatText ); }
|
|
|
|
void OnChatTextReceivedCh1 ( QString strChatText ) { CreateAndSendChatTextForAllConChannels ( 1, strChatText ); }
|
|
|
|
void OnChatTextReceivedCh2 ( QString strChatText ) { CreateAndSendChatTextForAllConChannels ( 2, strChatText ); }
|
|
|
|
void OnChatTextReceivedCh3 ( QString strChatText ) { CreateAndSendChatTextForAllConChannels ( 3, strChatText ); }
|
|
|
|
void OnChatTextReceivedCh4 ( QString strChatText ) { CreateAndSendChatTextForAllConChannels ( 4, strChatText ); }
|
|
|
|
void OnChatTextReceivedCh5 ( QString strChatText ) { CreateAndSendChatTextForAllConChannels ( 5, strChatText ); }
|
|
|
|
void OnChatTextReceivedCh6 ( QString strChatText ) { CreateAndSendChatTextForAllConChannels ( 6, strChatText ); }
|
|
|
|
void OnChatTextReceivedCh7 ( QString strChatText ) { CreateAndSendChatTextForAllConChannels ( 7, strChatText ); }
|
|
|
|
void OnChatTextReceivedCh8 ( QString strChatText ) { CreateAndSendChatTextForAllConChannels ( 8, strChatText ); }
|
|
|
|
void OnChatTextReceivedCh9 ( QString strChatText ) { CreateAndSendChatTextForAllConChannels ( 9, strChatText ); }
|
|
|
|
void OnChatTextReceivedCh10 ( QString strChatText ) { CreateAndSendChatTextForAllConChannels ( 10, strChatText ); }
|
|
|
|
void OnChatTextReceivedCh11 ( QString strChatText ) { CreateAndSendChatTextForAllConChannels ( 11, strChatText ); }
|
2013-09-08 22:15:21 +02:00
|
|
|
void OnChatTextReceivedCh12 ( QString strChatText ) { CreateAndSendChatTextForAllConChannels ( 12, strChatText ); }
|
|
|
|
void OnChatTextReceivedCh13 ( QString strChatText ) { CreateAndSendChatTextForAllConChannels ( 13, strChatText ); }
|
|
|
|
void OnChatTextReceivedCh14 ( QString strChatText ) { CreateAndSendChatTextForAllConChannels ( 14, strChatText ); }
|
|
|
|
void OnChatTextReceivedCh15 ( QString strChatText ) { CreateAndSendChatTextForAllConChannels ( 15, strChatText ); }
|
|
|
|
void OnChatTextReceivedCh16 ( QString strChatText ) { CreateAndSendChatTextForAllConChannels ( 16, strChatText ); }
|
|
|
|
void OnChatTextReceivedCh17 ( QString strChatText ) { CreateAndSendChatTextForAllConChannels ( 17, strChatText ); }
|
|
|
|
void OnChatTextReceivedCh18 ( QString strChatText ) { CreateAndSendChatTextForAllConChannels ( 18, strChatText ); }
|
|
|
|
void OnChatTextReceivedCh19 ( QString strChatText ) { CreateAndSendChatTextForAllConChannels ( 19, strChatText ); }
|
2011-05-28 14:17:01 +02:00
|
|
|
|
|
|
|
void OnServerAutoSockBufSizeChangeCh0 ( int iNNumFra ) { vecChannels[0].CreateJitBufMes ( iNNumFra ); }
|
|
|
|
void OnServerAutoSockBufSizeChangeCh1 ( int iNNumFra ) { vecChannels[1].CreateJitBufMes ( iNNumFra ); }
|
|
|
|
void OnServerAutoSockBufSizeChangeCh2 ( int iNNumFra ) { vecChannels[2].CreateJitBufMes ( iNNumFra ); }
|
|
|
|
void OnServerAutoSockBufSizeChangeCh3 ( int iNNumFra ) { vecChannels[3].CreateJitBufMes ( iNNumFra ); }
|
|
|
|
void OnServerAutoSockBufSizeChangeCh4 ( int iNNumFra ) { vecChannels[4].CreateJitBufMes ( iNNumFra ); }
|
|
|
|
void OnServerAutoSockBufSizeChangeCh5 ( int iNNumFra ) { vecChannels[5].CreateJitBufMes ( iNNumFra ); }
|
|
|
|
void OnServerAutoSockBufSizeChangeCh6 ( int iNNumFra ) { vecChannels[6].CreateJitBufMes ( iNNumFra ); }
|
|
|
|
void OnServerAutoSockBufSizeChangeCh7 ( int iNNumFra ) { vecChannels[7].CreateJitBufMes ( iNNumFra ); }
|
|
|
|
void OnServerAutoSockBufSizeChangeCh8 ( int iNNumFra ) { vecChannels[8].CreateJitBufMes ( iNNumFra ); }
|
|
|
|
void OnServerAutoSockBufSizeChangeCh9 ( int iNNumFra ) { vecChannels[9].CreateJitBufMes ( iNNumFra ); }
|
|
|
|
void OnServerAutoSockBufSizeChangeCh10 ( int iNNumFra ) { vecChannels[10].CreateJitBufMes ( iNNumFra ); }
|
|
|
|
void OnServerAutoSockBufSizeChangeCh11 ( int iNNumFra ) { vecChannels[11].CreateJitBufMes ( iNNumFra ); }
|
2013-09-08 22:15:21 +02:00
|
|
|
void OnServerAutoSockBufSizeChangeCh12 ( int iNNumFra ) { vecChannels[12].CreateJitBufMes ( iNNumFra ); }
|
|
|
|
void OnServerAutoSockBufSizeChangeCh13 ( int iNNumFra ) { vecChannels[13].CreateJitBufMes ( iNNumFra ); }
|
|
|
|
void OnServerAutoSockBufSizeChangeCh14 ( int iNNumFra ) { vecChannels[14].CreateJitBufMes ( iNNumFra ); }
|
|
|
|
void OnServerAutoSockBufSizeChangeCh15 ( int iNNumFra ) { vecChannels[15].CreateJitBufMes ( iNNumFra ); }
|
|
|
|
void OnServerAutoSockBufSizeChangeCh16 ( int iNNumFra ) { vecChannels[16].CreateJitBufMes ( iNNumFra ); }
|
|
|
|
void OnServerAutoSockBufSizeChangeCh17 ( int iNNumFra ) { vecChannels[17].CreateJitBufMes ( iNNumFra ); }
|
|
|
|
void OnServerAutoSockBufSizeChangeCh18 ( int iNNumFra ) { vecChannels[18].CreateJitBufMes ( iNNumFra ); }
|
|
|
|
void OnServerAutoSockBufSizeChangeCh19 ( int iNNumFra ) { vecChannels[19].CreateJitBufMes ( iNNumFra ); }
|
2011-04-25 12:51:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* !defined ( SERVER_HOIHGE7LOKIH83JH8_3_43445KJIUHF1912__INCLUDED_ ) */
|