🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7856

When connection closes , what would be happen?(IRC acts defferent)

#7856
From: ArShAm
Date: Sat, 19 May 2001 05:44
16 lines
1556 bytes
Hi there
When a side of a socket connection closes , how the other side find that? I
think there would be an Exception in the reading of the stream orwill be the
null reason....
in fact when the null in given in InputStream of a socket?

When I get dc from my ISP , while connecting to IRC servers , I saw it cant
determine I am dead , but it sends a PING message , and when doesn't get the
PONG message , then assume I am dead , why it doesn't get an Exception or
error or null or other else in the reading loop?

If it use other thing rather that reading from sockets in a loop?
If it uses another kind of socket conection ?

Thanks
    ArShAm
Technical Details
Message-ID: <3b06070d_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,e26e532278f429b6,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-05-18 23:08:42 PST
Reply-To: "ArShAm" <ArShAm@abshar.net>
From: "ArShAm" <ArShAm@abshar.net>
Newsgroups: borland.public.jbuilder.java.language
Subject: When connection closes , what would be happen?(IRC acts defferent)
Date: Sat, 19 May 2001 10:14:41 +0430
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
NNTP-Posting-Host: 61.11.252.152
Message-ID: <3b06070d_2@dnews>
X-Trace: dnews 990250765 61.11.252.152 (18 May 2001 22:39:25 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews