@Override protected void create(boolean streaming) throws IOException { this.streaming = streaming; this.fd = IoBridge.socket(streaming); }
protected DatagramChannelImpl(SelectorProvider selectorProvider) throws IOException { super(selectorProvider); fd = IoBridge.socket(false); }
@Override public void create() throws SocketException { this.fd = IoBridge.socket(false); }
public SocketChannelImpl(SelectorProvider selectorProvider, boolean connect) throws IOException { super(selectorProvider); status = SOCKET_STATUS_UNCONNECTED; fd = (connect ? IoBridge.socket(true) : new FileDescriptor()); }
private boolean isReachable(InetAddress destination, InetAddress source, int timeout) throws IOException { // TODO: try ICMP first (http://code.google.com/p/android/issues/detail?id=20106) FileDescriptor fd = IoBridge.socket(true); boolean reached = false; try { if (source != null) { IoBridge.bind(fd, source, 0); } IoBridge.connect(fd, destination, 7, timeout); reached = true; } catch (IOException e) { if (e.getCause() instanceof ErrnoException) { // "Connection refused" means the IP address was reachable. reached = (((ErrnoException) e.getCause()).errno == ECONNREFUSED); } } IoBridge.closeSocket(fd); return reached; }
protected DatagramChannelImpl(SelectorProvider selectorProvider) throws IOException { super(selectorProvider); fd = IoBridge.socket(false); }
@Override protected void create(boolean streaming) throws IOException { this.streaming = streaming; this.fd = IoBridge.socket(streaming); }
@Override protected void create(boolean streaming) throws IOException { this.streaming = streaming; this.fd = IoBridge.socket(streaming); }
@Override protected void create(boolean streaming) throws IOException { this.streaming = streaming; this.fd = IoBridge.socket(streaming); }
protected DatagramChannelImpl(SelectorProvider selectorProvider) throws IOException { super(selectorProvider); fd = IoBridge.socket(false); }
@Override protected void create(boolean streaming) throws IOException { this.streaming = streaming; this.fd = IoBridge.socket(streaming); }
@Override protected void create(boolean streaming) throws IOException { this.streaming = streaming; this.fd = IoBridge.socket(streaming); }
@Override public void create() throws SocketException { this.fd = IoBridge.socket(false); }
@Override protected void create(boolean streaming) throws IOException { this.streaming = streaming; this.fd = IoBridge.socket(streaming); }
@Override public void create() throws SocketException { this.fd = IoBridge.socket(false); }
public SocketChannelImpl(SelectorProvider selectorProvider, boolean connect) throws IOException { super(selectorProvider); status = SOCKET_STATUS_UNCONNECTED; fd = (connect ? IoBridge.socket(true) : new FileDescriptor()); }
public SocketChannelImpl(SelectorProvider selectorProvider, boolean connect) throws IOException { super(selectorProvider); status = SOCKET_STATUS_UNCONNECTED; fd = (connect ? IoBridge.socket(true) : new FileDescriptor()); }
public SocketChannelImpl(SelectorProvider selectorProvider, boolean connect) throws IOException { super(selectorProvider); status = SOCKET_STATUS_UNCONNECTED; fd = (connect ? IoBridge.socket(true) : new FileDescriptor()); }
public SocketChannelImpl(SelectorProvider selectorProvider, boolean connect) throws IOException { super(selectorProvider); status = SOCKET_STATUS_UNCONNECTED; fd = (connect ? IoBridge.socket(true) : new FileDescriptor()); }
public SocketChannelImpl(SelectorProvider selectorProvider, boolean connect) throws IOException { super(selectorProvider); status = SOCKET_STATUS_UNCONNECTED; fd = (connect ? IoBridge.socket(true) : new FileDescriptor()); }