🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #5164

Re: Timeout for TClientServer in ctBlocking ...

#5164
From: Vladimir Stefanovic
Date: Tue, 12 Oct 2004 16:45
22 lines
1591 bytes
> > How can I reduce the time for waiting
> > for the connection to be established.
>
> Start a separate thread that waits for the desired timeout and then
> disconnects the socket after the time elapses.  If the connection
succeeds
> before then, stop the thread.

Ok. But can you explane why TTimer is also stuck when
mode is ctBlocking. I thought that TTimer has also a separete
thread?

> > Also, when I decide to abandon the process
> > of connecting, how can I really stop it.
>
> You have to set the Active property directly.

Ok.


Best regards,
Vladimir Stefanovic
Technical Details
Message-ID: <416c09ff@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!sn-xit-04!sn-xit-12!sn-xit-09!sn-xit-13!supernews.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <416bede7@newsgroups.borland.com> <416c06f0$3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,230ad6ee6657e1fc
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Vladimir Stefanovic" <spam@not.needed>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <416bede7@newsgroups.borland.com> <416c06f0$3@newsgroups.borland.com>
Subject: Re: Timeout for TClientServer in ctBlocking ...
Date: Tue, 12 Oct 2004 18:45:40 +0200
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 213.137.116.165
Message-ID: <416c09ff@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1097599487 213.137.116.165 (12 Oct 2004 09:44:47 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!sn-xit-04!sn-xit-12!sn-xit-09!sn-xit-13!supernews.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail