LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-19-2001, 07:42 AM   #1
Sharmila Inamdar
LQ Newbie
 
Registered: Apr 2001
Posts: 6

Rep: Reputation: 0
Java, dial-up connection and Linux




I've a dial up connection on my Linux machine as well as Ethernet connection. I can connect to the Internet using either the dial-up or through the Ethernet via proxy-server.

In case of dial-up connectivity,one of my Java program just hangs when my dial-up line goes down and doesn't wake up when the line comes-up. It doesn't throw any exception so that I can catch that line is down and act accordingly.

This is not the case with connectivity through Ethernet. If I stop network while the program is running , it immediately throws exception .."host not found " (that's what I want) and whenever I start the network , it immediately resumes.

Why can't dial-up scenario work the same way ? Can anybody put light on this?

regards,

..sharmila
 
Old 07-19-2001, 09:26 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
I would have thought that the difference is that if your ethernet link goes down then the interface is still there, with a proper IP address etc, just not working. If your dialup fails then the pppX interface disappears all together, Java probably can't copy with this.

Just a guess really.

HTH

Jamie...
 
Old 07-20-2001, 03:12 AM   #3
Sharmila Inamdar
LQ Newbie
 
Registered: Apr 2001
Posts: 6

Original Poster
Rep: Reputation: 0


well, i've tested the interface on ethernet and ppp.

I stopped the network when java was running. The ifcfg showd only loopback device and route-table had no entry except for lo.


Exctly the same was the route table and interface when I closed down ppp.

Then there must be something different in both... as u guess...

B'cause in case of ethernet , java throws exception "host not found" and in case of ppp.... Hang!


What next?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to establish dial up internet connection through linux? ss_vikas Linux - Newbie 23 07-19-2008 02:02 AM
How to configure dial up connection in PC-Quest 2004 linux smrt2learn Linux - Newbie 1 08-27-2004 09:11 AM
How to creat a dial up connection (at Home) in RedHat Linux 9 pasindu Linux - General 4 08-19-2004 11:10 PM
Problem with dial-up connection under Linux DarkLight Linux - Networking 12 07-25-2004 07:01 PM
get teh actual ipaddress in a dial up connection , Java juby Programming 3 04-26-2003 07:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration