标签: android localsocket
我用Android Java代码创建套接字客户端:
LocalSocket sock = new LocalSocket(LocalSocket.SOCKET_DGRAM); sock.connect(new LocalSocketAddress(path));
我的服务器是在JNI中创建的。 当我安装到设备上时,sock.connect经常抛出连接被拒绝的异常。