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.
如何在 java 中实现 AsyncSocket(特别是在 android 上)?
如果您想在 java 中执行非阻塞 io 而每个套接字没有 1 个或多个线程,则必须使用 java NIO库。NIO 周围有一些包装器使其更易于使用, netty就是一个很好的例子。