是否有可能从发送一个swf ICMP回应请求?有可能、swf、ICMP

由网友(别烦)分享简介:ActionScript 3的可以通过 flash.net.DatagramSocket 。是他们的任何方式来发送一个ICMP数据包?我还想设置TTL标志,这样我就可以实现在SWF 跟踪路由。ActionScript 3 can send UDP packets via flash.net.DatagramSock...

ActionScript 3的可以通过 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包: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

阅读全文

相关推荐

最新文章