cleanup (removed unnecessary variable)
This commit is contained in:
parent
72b24fedf3
commit
b8e9fcc4a3
2 changed files with 5 additions and 9 deletions
|
@ -37,7 +37,7 @@ CClient::CClient ( const quint16 iPortNumber ) :
|
||||||
bCeltDoHighQuality ( false ),
|
bCeltDoHighQuality ( false ),
|
||||||
bUseStereo ( false ),
|
bUseStereo ( false ),
|
||||||
bIsInitializationPhase ( true ),
|
bIsInitializationPhase ( true ),
|
||||||
Socket ( &Channel, &ConnLessProtocol, iPortNumber ),
|
Socket ( &Channel, iPortNumber ),
|
||||||
Sound ( AudioCallback, this ),
|
Sound ( AudioCallback, this ),
|
||||||
iAudioInFader ( AUD_FADER_IN_MIDDLE ),
|
iAudioInFader ( AUD_FADER_IN_MIDDLE ),
|
||||||
bReverbOnLeftChan ( false ),
|
bReverbOnLeftChan ( false ),
|
||||||
|
|
12
src/socket.h
12
src/socket.h
|
@ -56,10 +56,8 @@ class CSocket : public QObject
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CSocket ( CChannel* pNewChannel,
|
CSocket ( CChannel* pNewChannel,
|
||||||
CProtocol* pNewCLProtocol,
|
|
||||||
const quint16 iPortNumber )
|
const quint16 iPortNumber )
|
||||||
: pChannel( pNewChannel ), pConnLessProtocol ( pNewCLProtocol ),
|
: pChannel( pNewChannel ), bIsClient ( true ) { Init ( iPortNumber ); }
|
||||||
bIsClient ( true ) { Init ( iPortNumber ); }
|
|
||||||
|
|
||||||
CSocket ( CServer* pNServP,
|
CSocket ( CServer* pNServP,
|
||||||
const quint16 iPortNumber )
|
const quint16 iPortNumber )
|
||||||
|
@ -77,9 +75,8 @@ protected:
|
||||||
CVector<uint8_t> vecbyRecBuf;
|
CVector<uint8_t> vecbyRecBuf;
|
||||||
CHostAddress RecHostAddr;
|
CHostAddress RecHostAddr;
|
||||||
|
|
||||||
CChannel* pChannel; // for client
|
CChannel* pChannel; // for client
|
||||||
CProtocol* pConnLessProtocol; // for client
|
CServer* pServer; // for server
|
||||||
CServer* pServer; // for server
|
|
||||||
|
|
||||||
bool bIsClient;
|
bool bIsClient;
|
||||||
|
|
||||||
|
@ -106,12 +103,11 @@ class CHighPrioSocket
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CHighPrioSocket ( CChannel* pNewChannel,
|
CHighPrioSocket ( CChannel* pNewChannel,
|
||||||
CProtocol* pNewCLProtocol,
|
|
||||||
const quint16 iPortNumber )
|
const quint16 iPortNumber )
|
||||||
{
|
{
|
||||||
|
|
||||||
// TEST
|
// TEST
|
||||||
worker = new CSocket ( pNewChannel, pNewCLProtocol, iPortNumber );
|
worker = new CSocket ( pNewChannel, iPortNumber );
|
||||||
worker->moveToThread(&workerThread);
|
worker->moveToThread(&workerThread);
|
||||||
workerThread.start(QThread::TimeCriticalPriority);
|
workerThread.start(QThread::TimeCriticalPriority);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue