ok at this place the thread is created..
void FortuneServer::incomingConnection(int socketDescriptor)
{
FortuneThread *thread = new FortuneThread(socketDescriptor, fortune,this);
thread->start();
}
my understanding is whenever the new connection happens (a new client connects to the server)new thread is connected..
I am just trying to build my requirements on existing Threaded Fortune Server example.
yes currently creating a new database connection for each thread. any suggestion on DB connectivity please correct me.
Bookmarks