/* * Create an Audience of for multiple Servers. * Start with the first Server socket and then * use AddSocket to add more later. */ Audience::Audience( ext_Settings *inSettings, int insocket ) : Notify( 0 ), Thread() { Server* theServer = new Server( inSettings, insocket, (Notify*)this ); theServer->DeleteSelfAfterRun(); theServer->Start(); mThreads++; mSettings = inSettings; mStartWD = false; }
/* * Add another Server to your Audience */ void Audience::AddSocket(int insocket) { Server* theServer = new Server( mSettings, insocket, (Notify*)this); theServer->DeleteSelfAfterRun(); theServer->Start(); mThreads++; }