@Override protected void implConfigureBlocking(boolean blocking) throws IOException { IoUtils.setBlocking(fd, blocking); }
@Override protected void implConfigureBlocking(boolean blocking) throws IOException { IoUtils.setBlocking(fd, blocking); }
@Override protected void implConfigureBlocking(boolean blocking) throws IOException { IoUtils.setBlocking(getFD(), blocking); }
@Override protected void implConfigureBlocking(boolean blocking) throws IOException { IoUtils.setBlocking(getFD(), blocking); }
@Override protected void implConfigureBlocking(boolean blocking) throws IOException { IoUtils.setBlocking(impl.getFD$(), blocking); }
IoUtils.setBlocking(fd, false); try { Libcore.os.connect(fd, inetAddress, port); IoUtils.setBlocking(fd, true); // 4. set the socket back to blocking. return true; // We connected immediately. } catch (ErrnoException errnoException) { IoUtils.setBlocking(fd, true); // 4. set the socket back to blocking. return true; // Or we'd have thrown.
public SelectorImpl(SelectorProvider selectorProvider) throws IOException { super(selectorProvider); /* * Create a pipe to trigger wakeup. We can't use a NIO pipe because it * would be closed if the selecting thread is interrupted. Also * configure the pipe so we can fully drain it without blocking. */ try { FileDescriptor[] pipeFds = Libcore.os.pipe(); wakeupIn = pipeFds[0]; wakeupOut = pipeFds[1]; IoUtils.setBlocking(wakeupIn, false); pollFds.add(new StructPollfd()); setPollFd(0, wakeupIn, POLLIN, null); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } }
@Override protected void implConfigureBlocking(boolean blocking) throws IOException { IoUtils.setBlocking(fd, blocking); }
@Override protected void implConfigureBlocking(boolean blocking) throws IOException { IoUtils.setBlocking(fd, blocking); }
@Override protected void implConfigureBlocking(boolean blocking) throws IOException { IoUtils.setBlocking(fd, blocking); }
@Override protected void implConfigureBlocking(boolean blocking) throws IOException { IoUtils.setBlocking(fd, blocking); }
@Override protected void implConfigureBlocking(boolean blocking) throws IOException { IoUtils.setBlocking(fd, blocking); }
@Override protected void implConfigureBlocking(boolean blocking) throws IOException { IoUtils.setBlocking(getFD(), blocking); }
@Override protected void implConfigureBlocking(boolean blocking) throws IOException { IoUtils.setBlocking(getFD(), blocking); }
@Override protected void implConfigureBlocking(boolean blocking) throws IOException { IoUtils.setBlocking(getFD(), blocking); }
@Override protected void implConfigureBlocking(boolean blocking) throws IOException { IoUtils.setBlocking(impl.getFD$(), blocking); }
@Override protected void implConfigureBlocking(boolean blocking) throws IOException { IoUtils.setBlocking(getFD(), blocking); }
@Override protected void implConfigureBlocking(boolean blocking) throws IOException { IoUtils.setBlocking(getFD(), blocking); }
@Override protected void implConfigureBlocking(boolean blocking) throws IOException { IoUtils.setBlocking(getFD(), blocking); }
@Override protected void implConfigureBlocking(boolean blocking) throws IOException { IoUtils.setBlocking(impl.getFD$(), blocking); }