I would like to launch a TCPServer in a thread using ThreadPool.
I tried:
- Code: Select all
ServerSocket svs(port);
TCPServer srv(new MyServerConnectionFactory(), svs);
ThreadPool pool;
pool.start(srv);
waitForTerminationRequest();
srv.stop();
pool.joinAll();
It doesn't work (of course, the ConnectionFactory is implemented).
Where is the mistake?
Best regards,
Sylvain





