[ROOT] TServerSocket question

From: mathes@ik3.fzk.de
Date: Fri Nov 16 2001 - 16:03:44 MET


Dear Rooters,

one question concerning the class TServerSocket (or sockets at all):

What is the preferred way of server implementation if the server should
allow only one client to connect ? The server should allow a new
connection if the first client has disconnected.
1. delete the prototype socket (class TServerSocket) after the first
Accept() has been done -> then I have to create a new TServerSocket to
fulfill the 2nd requirement ...
2. Accept() more connections but close the resulting TSocket
immediately ?
3. set any option of the TServerSocket ? if, which one ?

Thanks for any helpful comment.

Hermann-Josef

**************************************************************************
*                                                                        *
*   Dr. Hermann-Josef Mathes                                             *
*   KASCADE & AUGER Collaboration                                        *
*   Forschungszentrum Karlsruhe                Phone: +49 7247 822429    *
*   Institut fuer Kernphysik                   FAX:   +49 7247 824075    *
*   POB 3640                                                             *
*   D-76021 Karlsruhe/Germany                  Mail:  mathes@ik3.fzk.de  *
*                                                     hjmathes@web.de    *
*                                                                        *
*   Feel free to visit my homepage:                                      *
*          http://www-ik3.fzk.de/~mathes/Welcome.html                    *
**************************************************************************



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:08 MET