Article View: borland.public.cppbuilder.internet.socket
Article #2052Would Indy's TIdTCPServer have any problem with connections I never read from?
From: Lesley Anne
Date: Tue, 29 Aug 2006 18:01
Date: Tue, 29 Aug 2006 18:01
23 lines
2353 bytes
2353 bytes
I'm planning on adding a TIdTCPServer to one of my applications, but not doing anything with it except occasionally turning on or off its Active property. Another application will periodically connect to it, but no data is sent between the two. I know the component will allocate buffers and other resources, but would the fact that I don't plan on actually reading from these connections ever cause problems with managing those resources? (I've followed this pattern in other applications, but never using the Indy library, so thought I should check.) One other question about TIdTCPServer. The port it listens on is called "DefaultPort". The use of the word "default" in the property's name is a bit disturbing, as though it could end up listening on some other port instead. Is that just a misnomer? From a server application, I need to be able to trust what port it's listening on. (If you're curious, the seemingly unused connections are there for alarming purposes. Whenever my application is up and running smoothly, it will have a server listening on a port. Whenever it runs into problems, it will shut off that port. A separate alarming application periodically checks the status of all our applications by seeing whether it can connect to their alarming ports. Since status is reported simply by whether or not connections are allowed, no further data needs to be sent.)
Technical Details
Message-ID:
<44f480ff@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,c51ec25c5d4e68e1,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Lesley Anne" <mspfila-ng@yahoo.com> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Would Indy's TIdTCPServer have any problem with connections I never read from? Date: Tue, 29 Aug 2006 14:01:30 -0400 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 144.160.5.25 Message-ID: <44f480ff@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1156874495 144.160.5.25 (29 Aug 2006 11:01:35 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail