Running background processes

Neeraj
02-01-2002, 04:10 AM
Hi all,
I need to write a program that runs in the background and keeps the ISP connection Alive. Normally the ISP connections time out if idle for 15-20 minutes. I want to write a program that triggers a background process that keeps that connection alive, bear in mind there might be no browser sessions open at the time.
Any ideas, code snippets would be highly appreciated.
Thanks in Advance,
Neeraj

ChiefRedBull
02-01-2002, 04:13 AM
All thats needed to keep your connection alive is internet activity.
So create a form, place a webbrowser control on it, and then every ten minutes tell it to navigate to google or any webpage you want.

Squirm
02-01-2002, 04:15 AM
You can use the Winsock or Inet controls for this, to connect to a hostname/IP and then send messages and stuff. An example might be to use the Inet control to connect to www.visualbasicforum.com every 10 minutes or something. Look for Winsock control or Internet transfer control in your MSDN help.

If you want it running in the background I assume you want to put it in the systray next to the clock. Search the forums for systray and you'll get lots of info. :)

Neeraj
02-01-2002, 04:33 PM
Guys,
I appreciate the quick response to my question. I guess these ideas are gonna keep me busy over the weekend. I'll post the solution on the site for everyone else's info.

Cheers,
Neeraj

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum