[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: example of a server
[Thread Prev] | [Thread Next]
- Subject: Re: example of a server
- From: Andreas Schneider <asn@xxxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Mon, 16 Apr 2012 17:53:14 +0200
- To: libssh@xxxxxxxxxx
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 asn@xxxxxxxxxxxxxx
example of a server | Tomasz Mikolajczyk <tmmikolajczyk@xxxxxxxxx> |
Re: example of a server | Andreas Schneider <asn@xxxxxxxxxxxxxx> |
Re: example of a server | Tomasz Mikolajczyk <tmmikolajczyk@xxxxxxxxx> |