Tabnine Logo
IoBridge.socket
Code IndexAdd Tabnine to your IDE (free)

How to use
socket
method
in
libcore.io.IoBridge

Best Java code snippets using libcore.io.IoBridge.socket (Showing top 20 results out of 315)

origin: robovm/robovm

@Override
protected void create(boolean streaming) throws IOException {
  this.streaming = streaming;
  this.fd = IoBridge.socket(streaming);
}
origin: robovm/robovm

protected DatagramChannelImpl(SelectorProvider selectorProvider) throws IOException {
  super(selectorProvider);
  fd = IoBridge.socket(false);
}
origin: robovm/robovm

@Override
public void create() throws SocketException {
  this.fd = IoBridge.socket(false);
}
origin: robovm/robovm

public SocketChannelImpl(SelectorProvider selectorProvider, boolean connect) throws IOException {
  super(selectorProvider);
  status = SOCKET_STATUS_UNCONNECTED;
  fd = (connect ? IoBridge.socket(true) : new FileDescriptor());
}
origin: robovm/robovm

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;
}
origin: MobiVM/robovm

protected DatagramChannelImpl(SelectorProvider selectorProvider) throws IOException {
  super(selectorProvider);
  fd = IoBridge.socket(false);
}
origin: MobiVM/robovm

@Override
protected void create(boolean streaming) throws IOException {
  this.streaming = streaming;
  this.fd = IoBridge.socket(streaming);
}
origin: ibinti/bugvm

@Override
protected void create(boolean streaming) throws IOException {
  this.streaming = streaming;
  this.fd = IoBridge.socket(streaming);
}
origin: com.bugvm/bugvm-rt

@Override
protected void create(boolean streaming) throws IOException {
  this.streaming = streaming;
  this.fd = IoBridge.socket(streaming);
}
origin: com.gluonhq/robovm-rt

protected DatagramChannelImpl(SelectorProvider selectorProvider) throws IOException {
  super(selectorProvider);
  fd = IoBridge.socket(false);
}
origin: com.mobidevelop.robovm/robovm-rt

@Override
protected void create(boolean streaming) throws IOException {
  this.streaming = streaming;
  this.fd = IoBridge.socket(streaming);
}
origin: com.gluonhq/robovm-rt

@Override
protected void create(boolean streaming) throws IOException {
  this.streaming = streaming;
  this.fd = IoBridge.socket(streaming);
}
origin: MobiVM/robovm

@Override
public void create() throws SocketException {
  this.fd = IoBridge.socket(false);
}
origin: FlexoVM/flexovm

@Override
protected void create(boolean streaming) throws IOException {
  this.streaming = streaming;
  this.fd = IoBridge.socket(streaming);
}
origin: ibinti/bugvm

@Override
public void create() throws SocketException {
  this.fd = IoBridge.socket(false);
}
origin: MobiVM/robovm

public SocketChannelImpl(SelectorProvider selectorProvider, boolean connect) throws IOException {
  super(selectorProvider);
  status = SOCKET_STATUS_UNCONNECTED;
  fd = (connect ? IoBridge.socket(true) : new FileDescriptor());
}
origin: ibinti/bugvm

public SocketChannelImpl(SelectorProvider selectorProvider, boolean connect) throws IOException {
  super(selectorProvider);
  status = SOCKET_STATUS_UNCONNECTED;
  fd = (connect ? IoBridge.socket(true) : new FileDescriptor());
}
origin: com.bugvm/bugvm-rt

public SocketChannelImpl(SelectorProvider selectorProvider, boolean connect) throws IOException {
  super(selectorProvider);
  status = SOCKET_STATUS_UNCONNECTED;
  fd = (connect ? IoBridge.socket(true) : new FileDescriptor());
}
origin: com.mobidevelop.robovm/robovm-rt

public SocketChannelImpl(SelectorProvider selectorProvider, boolean connect) throws IOException {
  super(selectorProvider);
  status = SOCKET_STATUS_UNCONNECTED;
  fd = (connect ? IoBridge.socket(true) : new FileDescriptor());
}
origin: com.gluonhq/robovm-rt

public SocketChannelImpl(SelectorProvider selectorProvider, boolean connect) throws IOException {
  super(selectorProvider);
  status = SOCKET_STATUS_UNCONNECTED;
  fd = (connect ? IoBridge.socket(true) : new FileDescriptor());
}
libcore.ioIoBridgesocket

Popular methods of IoBridge

  • available
  • bind
  • booleanFromInt
  • booleanToInt
  • closeSocket
  • connect
    Connects socket 'fd' to 'inetAddress' on 'port', with a the given 'timeoutMs'. Use timeoutMs == 0 fo
  • connectDetail
  • connectErrno
  • getSocketLocalAddress
  • getSocketLocalPort
  • getSocketOption
    java.net has its own socket options similar to the underlying Unix ones. We paper over the differenc
  • getSocketOptionErrno
  • getSocketOption,
  • getSocketOptionErrno,
  • isConnected,
  • maybeThrowAfterRecvfrom,
  • maybeThrowAfterSendto,
  • open,
  • postRecvfrom,
  • read,
  • recvfrom,
  • sendto

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JComboBox (javax.swing)
  • JTextField (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Runner (org.openjdk.jmh.runner)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now