yes,ping yahoo.I wrote several program using this way. In fact it's very hard to define what is connected and what isn't. When you dialed,but after a while,you isp's computer have problem,you can't access inet on earth,do you think it's still connected or not? This doesn't happen much on dialup use,but quite often on leaseline. So pratice is the only way to prove law.;-)
不行,不灵。
IP地址!这样就可以知道当前你是否已经连上Internet!这对代理同样有效!
这样可以,有没有其它办法?
In fact it's very hard to define what is connected and what isn't.
When you dialed,but after a while,you isp's computer have problem,you can't access inet on earth,do you think it's still connected or not?
This doesn't happen much on dialup use,but quite often on leaseline.
So pratice is the only way to prove law.;-)
有一堆关于INTERNET的拨号及枚举连接、挂断等函数。
(在RASDIAL函数的帮助中,最底下相关函数中)
系统会发送一条消息捕获它。当然不能用Timer,那谁受得了。
用delphi写的ping程序,但如何判断ping通或ping不通?