CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    20

    Close internet connection - How?



    I'm writing a java app that downloads more than a few html files for me. When I create the URL my PC (Win95) automatically establishes it's dialup connection.


    My question is... how do I tell the app to disconnect when the app has finished getting my files?


    Mark




  2. #2
    Join Date
    May 1999
    Posts
    93

    Re: Close internet connection - How?

    I don't believe you can disconnect from within the Java app. Win95 makes it appear as if the computer is always connected.

    1. You could either configure Win95 so that you have to connect manually
    2. Use JNI to get Win95 to hang up the modem connection.
    3. Use an internet service provider that disconnects you after a very short period on inactivity. Most will.
    4. Use some kind of utility that will disconnect from your end after the period of inactivity. Try searching for such a utility on http://www.softseek.com and http://www.winfiles.com


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured