Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Sep : Re: Converting From TClientSocket
| Subject: | Re: Converting From TClientSocket |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Wed, 5 Sep 2007 01:50:45 |
"Jack Mason" <jackmason@mindspring.com> wrote in message
news:46de371d@newsgroups.borland.com...
> Okay, thanks. I had found that one, but it had a value of 10 in it.
That would explain your delay problem. ReadTimeout is expressed in
milliseconds, not seconds. You have it set much too low. That is why you
needed to insert a call to Sleep() in your code earlier. If you want to
timeout after 10 seconds, then you need to set the value to 10000 instead.
> I dropped another one on the form and found it had a value
> of 0, which must be the default.
Yes, it is. A value of 0 means an infinite timeout (so does a value of -1).
> I expected something like a -1 for a default infinite value
-1 and 0 both represent an infinite timeout. 0 is just a little easier for
the DFM streaming system to handle.
Gambit
none