在Android原始套接字原始、Android

2023-09-12 07:53:26 作者:熬夜等死

我想创建一个运行在Android和使用原始套接字的应用程序。我看到有没有在java.net。*或android.net任何原始套接字支持。*库。是原始套接字在Android可能吗?

I want to create an application that runs on Android and uses Raw Sockets. I see there isn't any raw socket support in the java.net.* or the android.net.* libraries. Are raw sockets possible on Android?

推荐答案

正确的,原始套接字不支持任何Java或者Android库,部分原因是(我从引用的这里):

Correct, raw sockets are not supported in any Java or Android libraries, in part because (I quote from here):

据信这样的包   会降低当前的Java   安全模式与可能难以   在非操作系统实现   (OS)相关的方式。

it is believed that such a package would degrade the current Java security model and may be difficult to implement in a non-operating system (OS) dependent fashion.

有像 RockSaw 或的