public void awaitWritable() throws IOException {
   if (Native.EXTRA_TRACE) log.tracef("Await writable on %s", this);
   Native.testAndThrow(Native.await2(fd, true));
 }
 public void awaitReadable() throws IOException {
   if (Native.EXTRA_TRACE) log.tracef("Await readable on %s", this);
   Native.testAndThrow(Native.await2(fd, false));
 }