🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: bcb ServerSocket

#3986
From: Remy Lebeau (TeamB)
Date: Wed, 20 Apr 2005 18:45
23 lines
2185 bytes
"Joel Guerra" <j.guerra@texasscenic.com> wrote in message
news:42665b58@newsgroups.borland.com...

> Thanks, this works most of the time, but I still have a
> problems every now and again if I pull the enet cable out.

Under most versions of Windows, the socket stack cannot detect that to begin
with, so sockets have no way of knowing that they are actually gone.  This
is actually by design.  Temporary outages on a LAN/WAN are common.  Socket
stacks are designed to handle that situation internally by keeping sockets
"alive" for an period of time.  If the network comes back in a timely
fashion, the socket stack can reestablish communication with the remote
machine silently and gracefully, and the application will never know that
the connection was ever down.  If the network does not come back, or if the
remote machine cannot be reached anymore, then the stack still has no way of
knowing that the socket connection is really gone until the socket times out
internally.  Only then can the socket be invalidated by the socket stack.
Until that happens, the socket stack does not report any errors on the
socket, so the application has no way of knowing what.is happening.


Gambit
Technical Details
Message-ID: <4266a2c5@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42657f98$1@newsgroups.borland.com> <4265cd92$1@newsgroups.borland.com> <42665b58@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,8f3aebf0a06ba50
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: <42657f98$1@newsgroups.borland.com> <4265cd92$1@newsgroups.borland.com> <42665b58@newsgroups.borland.com>
Subject: Re: bcb ServerSocket
Date: Wed, 20 Apr 2005 11:45:32 -0700
Lines: 25
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: <4266a2c5@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1114022597 68.69.17.41 (20 Apr 2005 11:43:17 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail