除了不会阻塞之外,非阻塞读不能给呼叫方任何保证。
A nonblocking read makes no guarantee to the caller besides the fact that it won't block.
为了实现基础的非阻塞套接字读和写操作,我们要处理两个新类。
We have two new classes to deal with in order to implement basic nonblocking socket read and write operations. These are the InetSocketAddress class from the java.net.
应用推荐