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.
我在android中创建了一个Socket。有一种方法叫
socket.setKeepAlive(true);
但不幸的是,没有设置间隔、超时和重试计数的选项。
如何使用 keep-alive 套接字实现这一点。