ping www.example.com 如何? :)

在 2010年7月20日 下午10:06,iaml <[email protected]>写道:

> 说起网络,问一个问题,有什么好的办法来检测当前机器是否连上网了?ping一个固定地址?
>
> 在 2010年7月20日 上午11:46,Homer Xing <[email protected]>写道:
>
>> 改写了下代码。 对于不能从网络下载,导致不能装的情况,在对话框上给出说明。
>> 现在还不能处理用户 Ctrl+C 中断安装的情况。
>>
>> Homer
>>
>> 在 2010年7月20日 上午9:38,Homer Xing <[email protected]>写道:
>>
>> 第二个问题我已解决。urllib.urlretrieve 无法使用代理。换成 urllib2。
>>>
>>> 我正在处理第一个。
>>>
>>> 在 2010年6月29日 下午1:02,Homer Xing <[email protected]>写道:
>>>
>>> 刚刚答复了50%的 open issue。发生最多的是两个问题:
>>>>
>>>> 1. 某个文件不能下载,导致软件不能装,报错。
>>>>    解决: 应该提示用户哪个文件不能下载,而不报错。
>>>>
>>>> 2. 开代理时,urllib.urlretrieve 出错,不能下载。
>>>>    解决: 不知道 urllib 怎么指定代理?或者改用 urllib2?
>>>>
>>>> 大家谁有空呀?来讨论、解决下这个问题呀?
>>>>
>>>> Homer
>>>>
>>>
>>>
>>
>> _______________________________________________
>> Mailing list: 
>> https://launchpad.net/~ailurus<https://launchpad.net/%7Eailurus>
>> Post to     : [email protected]
>> Unsubscribe : 
>> https://launchpad.net/~ailurus<https://launchpad.net/%7Eailurus>
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> 感谢抽时间阅读我的邮件
> 祝生活愉快
> 林 涛
>
_______________________________________________
Mailing list: https://launchpad.net/~ailurus
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~ailurus
More help   : https://help.launchpad.net/ListHelp

回复