On Monday 16 April 2012 17:32:48 you wrote:
> All of that I wrote is just a pseudo code. In the real system I must
> handle each connection in a separate thread. I will prepare a basic
> example (in C++ for convenience) and let you know.
I dunno if you develop for Linux here. But for such services threads are
normally not a good idea. A fork in Linux is pretty cheap and more secure than
a thread. If you have a segfault your daemon is gone. If you fork then only
the process handling the client connection dies.
-- andreas
--
Andreas Schneider GPG-ID: F33E3FC6
www.cryptomilk.org [email protected]