🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Network connection?

#20016
From: Andrew Bennett
Date: Mon, 03 Nov 1997 00:00
23 lines
1354 bytes
On Sun, 02 Nov 1997 23:51:22 -0800, Frank Cohen
<fcohen@watchmysite.com> wrote:

>I'm writing a simple Java application that sends email messages. Is
>there a Java or JBCL component call that will let me determine if there
>is TCP/IP connectivity to the Internet? My app crashes my system when I
>try opening a socket when I forget to dial-up to my ISP.

No Java component that I know of can do that.  Since sockets are built
into the VM, they come kinda natural.  You may try connecting to the
user's SMTP host, and should that fail, throw up an error message of
sorts indicating TCP/IP isn't connected, or the host is down, or
something like that.



Andrew
--
  Andrew Bennett            ->  abennett@borland.com
  JBuilder info             ->  http://www.borland.com/jbuilder/
  JBuilder newsgroups info  ->  http://www.borland.com/newsgroups/
**** Please don't post a reply AND send email.  Do one.  I'll see it. ****
Technical Details
Message-ID: <345e0ca5.2426469@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <345D827A.2BE8@watchmysite.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,a29c79fc357c410e
X-Google-Attributes: gidf74b3,public
From: abennett@borland.com (Andrew Bennett)
Subject: Re: Network connection?
Date: 1997/11/03
Message-ID: <345e0ca5.2426469@forums.borland.com>
X-Deja-AN: 286797419
References: <345D827A.2BE8@watchmysite.com>
Organization: None
Newsgroups: borland.public.jbuilder.java.language