make it possible to select the local port number for client, too

This commit is contained in:
Volker Fischer 2008-08-13 19:08:45 +00:00
parent 65ec067763
commit c50dd2fc56
4 changed files with 6 additions and 5 deletions

View file

@ -26,7 +26,8 @@
/* Implementation *************************************************************/
CClient::CClient() : bRun ( false ), Socket ( &Channel ),
CClient::CClient ( const quint16 iPortNumber ) : bRun ( false ),
Socket ( &Channel, iPortNumber ),
iAudioInFader ( AUD_FADER_IN_MAX / 2 ),
iReverbLevel ( AUD_REVERB_MAX / 6 ),
bReverbOnLeftChan ( false ),

View file

@ -61,7 +61,7 @@ class CClient : public QThread
Q_OBJECT
public:
CClient();
CClient ( const quint16 iPortNumber );
virtual ~CClient() {}
void Init();

View file

@ -142,7 +142,7 @@ int main ( int argc, char** argv )
{
// client
// actual client object
CClient Client;
CClient Client ( iPortNumber );
// load settings from init-file
CSettings Settings ( &Client );

View file

@ -46,8 +46,8 @@ class CSocket : public QObject
Q_OBJECT
public:
CSocket ( CChannel* pNewChannel ) : pChannel( pNewChannel ), bIsClient ( true )
{ Init(); }
CSocket ( CChannel* pNewChannel, const quint16 iPortNumber ) :
pChannel( pNewChannel ), bIsClient ( true ) { Init ( iPortNumber ); }
CSocket ( CChannelSet* pNewChannelSet, QObject* pNServP, const quint16 iPortNumber ) :
pChannelSet(pNewChannelSet), pServer ( pNServP ), bIsClient ( false )
{ Init ( iPortNumber ); }