I have a dialog based program in mfc .i want when I connect or dicconnect from internet a message send to my program . . .
Who I can do this ?
Can someone help me aboat this question ?
thanks
You do realize that being connect to the internet involves more than just HTTP Web connection. The internet is not limited to the Web, HTTP is simply a protocol that allows you to view the internet in a web page format. If you don't understand this you might want to read up on how the internet started, in which case you should google Arpanet. You can be connected to the internet on up to 65555 different ports all running different services some of which you are probably unaware of because their is more than likely spyware on your computer. Hence, saying that you want to be notified when you disconnect from the internet is a very vague thing to be notified about. Now, if you want to know when you are no longer connected to view web pages, you need to check the status of port 80 and port 443. Otherwise you will need to be more specific.
Ok thanks
In fact I want to write a program that calculate the internet connection time and save this times in a text file .
Therefore I must be aware from connecting and disconnecting from internet.
I use dial-up connection for internet .
Recently I searched msdn and I find some suitable functions that can help me :
InternetGetConnectedState is a function in SDK platform but it is not a message .by it I can realize I'm connect or disconnect but i need a message .
You said about using ports .now can you write code or functions that do this for me ?
Excuse me if my sentences have some problem because my language is not english.
Okay..... You want me to write this for you? You can write it, it's your project. I was just telling you that you can get the status of different ports if certain services are connected to there internet.
No ! I want you to give me an example or a linkYou want me to write this for you?
It is not a project I work visual c++ because its interesting for meYou can write it, it's your project
If its possible for you and you have enough time please help me !I was just telling you that you can get the status of different ports if certain services are connected to there internet.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks