Your code is a mess on so many levels its hard to know where to start.
It should not even compile as in LoggerThread::run() this code is illegal:
void LoggerThread::run()
{
while(1)
{
ClientThread *thr = ClientThread(serverSocket.accept()); // you are assigning a stack copy initialization to a pointer. This should not compile, and if it did, it should crash.
thr->start();
}
}
void LoggerThread::run()
{
while(1)
{
ClientThread *thr = ClientThread(serverSocket.accept()); // you are assigning a stack copy initialization to a pointer. This should not compile, and if it did, it should crash.
thr->start();
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks