Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法用SOCKET_SEQPACKET类型初始化 android LocalServerSocket以避免处理数据包边界?
是的,LocalServerSocket 具有获取文件描述符的构造函数。使用 LocalSocket.SOCKET_SEQPACKET 初始化 LocalSocket,将其绑定到 LocalSocketAddress 并将其文件描述符传递给 LocalServerSocket 构造函数。