Codota Logo
IoBridge.socket
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
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

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • setContentView (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now