是否有可能从发送一个swf ICMP回应请求? [英] Is it possible to send an ICMP echo request from a swf?
问题描述
ActionScript 3的可以通过<一个发送UDP包href="http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/net/DatagramSocket.html"相对=nofollow> flash.net.DatagramSocket 。是他们的任何方式来发送一个ICMP数据包?我还想设置TTL标志,这样我就可以实现在SWF 跟踪路由。
ActionScript 3 can send UDP packets via flash.net.DatagramSocket. Is their any way to send an ICMP packet? I'd also like to set the TTL flag so I can implement traceroute in an SWF.
推荐答案
UDP是不可用的Flash Player中,仅在Adobe AIR运行时。所以,如果你不针对一个浏览器,就可以使用它。我不知道你是否能发送一个ICMP数据包的DatagramSocket - 但你可以尝试设置TTL这样的例子:的 http://blog.debit.nl/2010/06/mdns-daap-announce-air-2-0/
UDP is not available on Flash Player, only on Adobe AIR runtime. So if you are not targeting a browser, you can use it. I don't know if you can send an ICMP packet with DatagramSocket - but you could try to set the TTL like this example: http://blog.debit.nl/2010/06/mdns-daap-announce-air-2-0/
和你可能会有兴趣看的flash.net.dns包:<一href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/dns/package-detail.html" rel="nofollow">http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/dns/package-detail.html
And you might be interested to see the flash.net.dns package: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/dns/package-detail.html
这篇关于是否有可能从发送一个swf ICMP回应请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!