Short answer, no, you cannot do an actual ping from Flash since it lacks the ability to send ICMP packets. However, I have to ask, what is your reasoning for it's usage?
The only way to do it (which isn't really a ping) would be to try to load something extremely small from the server, or have a way for the server to do a callback using a service of sorts. All of this would of course be through HTTP.
发布评论
评论(1)
简短的回答是,不,您无法从 Flash 执行实际 ping,因为它缺乏发送 ICMP 数据包的能力。但是,我想问一下,您使用它的理由是什么?
唯一的方法(这不是真正的 ping)是尝试从服务器加载一些非常小的东西,或者有一种方法让服务器使用某种服务进行回调。所有这些当然都是通过 HTTP 进行的。
Short answer, no, you cannot do an actual ping from Flash since it lacks the ability to send ICMP packets. However, I have to ask, what is your reasoning for it's usage?
The only way to do it (which isn't really a ping) would be to try to load something extremely small from the server, or have a way for the server to do a callback using a service of sorts. All of this would of course be through HTTP.