🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Timeout for TClientServer in ctBlocking ...

#5166
From: Remy Lebeau (TeamB)
Date: Tue, 12 Oct 2004 17:59
21 lines
1799 bytes
"Vladimir Stefanovic" <spam@not.needed> wrote in message
news:416c0915@newsgroups.borland.com...

> When the PC in LAN is switched-on but the ServerSocket
> is not listening, the waiting time is not *so* long.

The socket stack on that machine is still running even if no sockets are
listening.  It knows that no sockets are listening, so it can return an
error reply immediately.

> Can I somehow check (ping) if the PC in LAN is active at
> all, so that I can know in advance not to try to connect at all.

Pings are not reliable, especially nowadays with firewalls and such.  Pings
can actually be blocked, thus giving the appearance of nothing being there
when there really is.  If you use a ping to decide whether to connect, then
you may not end up connecting at all when you really could.


Gambit
Technical Details
Message-ID: <416c1b6c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <416bede7@newsgroups.borland.com> <416bfa1e@newsgroups.borland.com> <416c06f0$1@newsgroups.borland.com> <416c0915@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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <416bede7@newsgroups.borland.com> <416bfa1e@newsgroups.borland.com> <416c06f0$1@newsgroups.borland.com> <416c0915@newsgroups.borland.com>
Subject: Re: Timeout for TClientServer in ctBlocking ...
Date: Tue, 12 Oct 2004 10:59:21 -0700
Lines: 23
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: <416c1b6c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1097603948 68.69.17.41 (12 Oct 2004 10:59:08 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail