src/worker.cc
// Spawn slave threads for incoming connections.
Spawn slave threads for incoming connections.
Spawn slave threads for incoming connections .
bool NetworkListenThread::SpawnSlave(int newsock, int threadid) {
  logprintf(12, "Log: Listen thread spawning slave\n");
  ChildWorker *child_worker = new ChildWorker;
  child_worker->thread.SetSock(newsock);
  child_worker->thread.InitThread(threadid, sat_, os_, patternlist_,
                                  &child_worker->status);
  child_worker->status.Initialize();
  child_worker->thread.SpawnThread();
  child_workers_.push_back(child_worker);
  return true;
}
bool NetworkListenThread :: SpawnSlave ( int newsock , int threadid ) { logprintf ( 12 , " \n " ) ; ChildWorker * child_worker = new ChildWorker ; child_worker -> thread . SetSock ( newsock ) ; child_worker -> thread . InitThread ( threadid , sat_ , os_ , patternlist_ , & child_worker -> status ) ; child_worker -> status . Initialize ( ) ; child_worker -> thread . SpawnThread ( ) ; child_workers_ . push_back ( child_worker ) ; return true ; }
Spawn slave threads for incoming connections.
Spawn slave threads for incoming connections .
// Spawn slave thread, to reflect network traffic back to sender.