问题描述
我很无聊的事业我的开发服务器已关闭,我运行命令提示符ping服务器将无限制地让我来看看当他们停止超时,知道我可以重新工作。在此期间我想做一个空应用程序,将做到这一点对我来说,这样我就可以把它啁啾或报警,或做一些事情,当它开始能够连接到服务器。
I'm bored cause my development server is down and I'm running the command prompt to ping the server indefinitely so that I'll see when they stop timing out and know that I can work again. In the meantime I wanted to make an Air app that will do this for me, so I can have it chirp or alarm or do something when it starts to be able to connect to the server.
所以,我要开始与具有AIR做平,没有人知道如何做到这一点?我找不到它的任何帮助。我不能使用HTTPService,因为不管它是坏了(认为它的VPN),我们开发的网站仍然是向上。
So I need to start with having AIR do the ping, does anyone know how to do this? I can't find any help on it. I can't use the HTTPService because whatever it is that is broken (think it's the VPN), our dev web site is still up.
感谢
推荐答案
否则,您可以使用的NativeProcess
类的AIR 2.0测试版,并使用ping命令你操作系统。
Otherwise you can use the NativeProcess
class of the AIR 2.0 beta, and use the ping command of your operating system.
您可以找到如何使用它这里。
You can find informations on how to use it here.
这篇关于我如何ping通的Flex - AIR?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!