Article View: borland.public.cppbuilder.internet.socket
Article #3391Re: Simple e-mail server
From: Remy Lebeau (TeamB)
Date: Tue, 27 Sep 2005 17:04
Date: Tue, 27 Sep 2005 17:04
44 lines
2293 bytes
2293 bytes
"Vladimir Stefanovic" <antivari@po.sbb.co.yu> wrote in message news:4339666a@newsgroups.borland.com... > Does that mean, that if exception occure in OnGetThread: > > 1) that thread is (of course) dead Correct. > 2) pending threads will be valid and allowed to finish Yes. They are already running. They are not effected by the listening thread. > 3) no more client requests are possible untill TServerSocket > reseting. Correct. > What is TServerSocket resetting? Is that just Open()ing > again? If the listening thread is terminated, the TServerSocket is still "open". Closing and re-opening the TServerSocket is the only way to restart the listening thread. > In general I want to go home and to be sure that my > TServerSocket is listening and that can survive any > problem that can possibly be involved. TServerSocket can't handle every possible thing that can go wrong. > Crach of the TServerSocket because of some reason > is OK, but I want it to restart as soon as possible by > TServiceApplication. In this particular situation, there is no way to be notified when the listening thread has crashed. You have no access to it at all. The only way to know if the server is no longer listening is to actually connect another client to the server and see if it fails. Gambit
Technical Details
Message-ID:
<43397d3c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4337dfe1$1@newsgroups.borland.com> <4338297e@newsgroups.borland.com> <433839f8@newsgroups.borland.com> <43386dd2$1@newsgroups.borland.com> <4339666a@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,97b4b095375844bd X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <4337dfe1$1@newsgroups.borland.com> <4338297e@newsgroups.borland.com> <433839f8@newsgroups.borland.com> <43386dd2$1@newsgroups.borland.com> <4339666a@newsgroups.borland.com> Subject: Re: Simple e-mail server Date: Tue, 27 Sep 2005 10:04:07 -0700 Lines: 46 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <43397d3c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1127841084 68.69.17.41 (27 Sep 2005 10:11:24 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail