Example #1
0
/*
 * 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;
}
Example #2
0
/*
 * Add another Server to your Audience
 */
void Audience::AddSocket(int insocket) {
    Server* theServer = new Server( mSettings, insocket, (Notify*)this);
    theServer->DeleteSelfAfterRun();
    theServer->Start();
    mThreads++;
}