Article View: borland.public.jbuilder.java.api
Article #1890Re: How can I get Socket status?
From: C. Lamont Gilbert dNOYEb
Date: Thu, 02 Aug 2001 13:00
Date: Thu, 02 Aug 2001 13:00
16 lines
1542 bytes
1542 bytes
The only way I kinow of is to do a read(). If it returns 0, you are not connected, if it returns -1, you are. This works, but I havent investigated to determine why and its reliability, but I been using it for about 6 months now. "Andrey Ptashinskiy" <ptash@mail.ru> wrote in message news:3b693d44_2@dnews... > Hi, All! > How can I get Socket status? > First, I connected to some server. Then how to check connected or not > socket? > Andrey. > >
Technical Details
Message-ID:
<3b695248_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!fr.usenet-edu.net!usenet-edu.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3b693d44_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,3240d4f95f64369c X-Google-Attributes: gid1089d0,public X-Google-Thread: f74b3,3240d4f95f64369c X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-08-02 06:18:33 PST From: "C. Lamont Gilbert \(dNOYEb\)" <lamont_gilbert @ rigidsoftware.com> Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.language References: <3b693d44_2@dnews> Subject: Re: How can I get Socket status? Date: Thu, 2 Aug 2001 09:00:11 -0400 Lines: 18 Organization: Rigidsoftware.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 63.68.196.61 Message-ID: <3b695248_2@dnews> X-Trace: dnews 996758088 63.68.196.61 (2 Aug 2001 06:14:48 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!fr.usenet-edu.net!usenet-edu.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews