コード例 #1
0
 public void awaitWritable() throws IOException {
   if (Native.EXTRA_TRACE) log.tracef("Await writable on %s", this);
   Native.testAndThrow(Native.await2(fd, true));
 }
コード例 #2
0
 public void awaitReadable() throws IOException {
   if (Native.EXTRA_TRACE) log.tracef("Await readable on %s", this);
   Native.testAndThrow(Native.await2(fd, false));
 }