Flex/AIR 中可以通过 LAN 唤醒吗?
标题几乎说明了一切...;)
我正在寻找一种方法来允许我的 AIR 应用程序唤醒本地网络上的计算机,但无法弄清楚如何发送 UDP 数据包。
当然,我谈论的是 AS3/Flex/AIR 解决方案,我知道我可以使用 NativeProcess,但我想坚持使用我的多平台 .air 文件。
我认为 AIR 不支持广播此类 UDP 数据包,但也许有人会明白。
我对 Alchemy 不太了解,它有什么帮助吗,因为它允许运行 C 编译的代码?
预先感谢您的帮助。
Title pretty much says it all... ;)
I'm looking for a way to allow my AIR application to wake a computer on my local network, but can't figure out how to send an UDP packet.
Of course I'm talking about an AS3/Flex/AIR solution, I know I could use NativeProcess but I'd like to stick with my multi-platform .air file.
I don't think AIR has support for broadcasting such UDP packets, but maybe someone will get an idea.
I don't know much about Alchemy, could it be of any help as it allows running C compiled code?
Thanks in advance for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
查看 DatagramSocket 类。 Alchemy 不会为您揭示隐藏的系统功能,它是将快速算术转换为闪存字节码。
Look into DatagramSocket class. Alchemy will not reveal hidden system capabilities for you, it's about transferring fast arythmetics into flash bytecode.
您可以从 Air
http:// /www.depicus.com/wake-on-lan/wake-on-lan-web-service.aspx
You could call a web service from Air
http://www.depicus.com/wake-on-lan/wake-on-lan-web-service.aspx
我看到这个问题很久以前就已经发布了
,为了唤醒计算机,需要通过广播或直接向机器IP发送一个魔术包。
数据包结构为:
解析为 int 的 mac 地址
0xFF
16 倍十六进制 MAC 地址
通过 udp 使用 DatagramSocket 发送,
我为此制作了一个小型 AS3 库,您可以在我的网站上找到它。
https://nicopr.fr/1446603389-wake-on-lan-with-actionscript
i see this question was posted a long time ago
in order to wake a computer, a magic packet needs to be sent over broadcast or directly to the machine IP.
The packet structure is :
mac address parsed as int
0xFF
16 times hex mac address
sent over udp with DatagramSocket
i made a small AS3 library for this, you can find it on my website.
https://nicopr.fr/1446603389-wake-on-lan-with-actionscript