Codota Logo
Os.socket
Code IndexAdd Codota to your IDE (free)

How to use
socket
method
in
libcore.io.Os

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: robovm/robovm

public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain, type, protocol); }
public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); }
origin: robovm/robovm

@Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException {
  return tagSocket(os.socket(domain, type, protocol));
}
origin: robovm/robovm

public static FileDescriptor socket(boolean stream) throws SocketException {
  FileDescriptor fd;
  try {
    fd = Libcore.os.socket(AF_INET6, stream ? SOCK_STREAM : SOCK_DGRAM, 0);
    // The RFC (http://www.ietf.org/rfc/rfc3493.txt) says that IPV6_MULTICAST_HOPS defaults
    // to 1. The Linux kernel (at least up to 2.6.38) accidentally defaults to 64 (which
    // would be correct for the *unicast* hop limit).
    // See http://www.spinics.net/lists/netdev/msg129022.html, though no patch appears to
    // have been applied as a result of that discussion. If that bug is ever fixed, we can
    // remove this code. Until then, we manually set the hop limit on IPv6 datagram sockets.
    // (IPv4 is already correct.)
    if (!stream) {
      Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, 1);
    }
    return fd;
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsSocketException();
  }
}
origin: MobiVM/robovm

public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain, type, protocol); }
public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); }
origin: ibinti/bugvm

public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain, type, protocol); }
public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); }
origin: com.gluonhq/robovm-rt

public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain, type, protocol); }
public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); }
origin: com.mobidevelop.robovm/robovm-rt

public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain, type, protocol); }
public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); }
origin: com.bugvm/bugvm-rt

public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain, type, protocol); }
public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); }
origin: FlexoVM/flexovm

public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain, type, protocol); }
public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); }
origin: ibinti/bugvm

@Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException {
  return tagSocket(os.socket(domain, type, protocol));
}
origin: com.mobidevelop.robovm/robovm-rt

@Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException {
  return tagSocket(os.socket(domain, type, protocol));
}
origin: MobiVM/robovm

@Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException {
  return tagSocket(os.socket(domain, type, protocol));
}
origin: com.bugvm/bugvm-rt

@Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException {
  return tagSocket(os.socket(domain, type, protocol));
}
origin: FlexoVM/flexovm

@Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException {
  return tagSocket(os.socket(domain, type, protocol));
}
origin: com.gluonhq/robovm-rt

@Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException {
  return tagSocket(os.socket(domain, type, protocol));
}
origin: MobiVM/robovm

public static FileDescriptor socket(boolean stream) throws SocketException {
  FileDescriptor fd;
  try {
    fd = Libcore.os.socket(AF_INET6, stream ? SOCK_STREAM : SOCK_DGRAM, 0);
    // The RFC (http://www.ietf.org/rfc/rfc3493.txt) says that IPV6_MULTICAST_HOPS defaults
    // to 1. The Linux kernel (at least up to 2.6.38) accidentally defaults to 64 (which
    // would be correct for the *unicast* hop limit).
    // See http://www.spinics.net/lists/netdev/msg129022.html, though no patch appears to
    // have been applied as a result of that discussion. If that bug is ever fixed, we can
    // remove this code. Until then, we manually set the hop limit on IPv6 datagram sockets.
    // (IPv4 is already correct.)
    if (!stream) {
      Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, 1);
    }
    return fd;
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsSocketException();
  }
}
origin: com.mobidevelop.robovm/robovm-rt

public static FileDescriptor socket(boolean stream) throws SocketException {
  FileDescriptor fd;
  try {
    fd = Libcore.os.socket(AF_INET6, stream ? SOCK_STREAM : SOCK_DGRAM, 0);
    // The RFC (http://www.ietf.org/rfc/rfc3493.txt) says that IPV6_MULTICAST_HOPS defaults
    // to 1. The Linux kernel (at least up to 2.6.38) accidentally defaults to 64 (which
    // would be correct for the *unicast* hop limit).
    // See http://www.spinics.net/lists/netdev/msg129022.html, though no patch appears to
    // have been applied as a result of that discussion. If that bug is ever fixed, we can
    // remove this code. Until then, we manually set the hop limit on IPv6 datagram sockets.
    // (IPv4 is already correct.)
    if (!stream) {
      Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, 1);
    }
    return fd;
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsSocketException();
  }
}
origin: com.bugvm/bugvm-rt

public static FileDescriptor socket(boolean stream) throws SocketException {
  FileDescriptor fd;
  try {
    fd = Libcore.os.socket(AF_INET6, stream ? SOCK_STREAM : SOCK_DGRAM, 0);
    // The RFC (http://www.ietf.org/rfc/rfc3493.txt) says that IPV6_MULTICAST_HOPS defaults
    // to 1. The Linux kernel (at least up to 2.6.38) accidentally defaults to 64 (which
    // would be correct for the *unicast* hop limit).
    // See http://www.spinics.net/lists/netdev/msg129022.html, though no patch appears to
    // have been applied as a result of that discussion. If that bug is ever fixed, we can
    // remove this code. Until then, we manually set the hop limit on IPv6 datagram sockets.
    // (IPv4 is already correct.)
    if (!stream) {
      Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, 1);
    }
    return fd;
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsSocketException();
  }
}
origin: com.gluonhq/robovm-rt

public static FileDescriptor socket(boolean stream) throws SocketException {
  FileDescriptor fd;
  try {
    fd = Libcore.os.socket(AF_INET6, stream ? SOCK_STREAM : SOCK_DGRAM, 0);
    // The RFC (http://www.ietf.org/rfc/rfc3493.txt) says that IPV6_MULTICAST_HOPS defaults
    // to 1. The Linux kernel (at least up to 2.6.38) accidentally defaults to 64 (which
    // would be correct for the *unicast* hop limit).
    // See http://www.spinics.net/lists/netdev/msg129022.html, though no patch appears to
    // have been applied as a result of that discussion. If that bug is ever fixed, we can
    // remove this code. Until then, we manually set the hop limit on IPv6 datagram sockets.
    // (IPv4 is already correct.)
    if (!stream) {
      Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, 1);
    }
    return fd;
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsSocketException();
  }
}
origin: ibinti/bugvm

public static FileDescriptor socket(boolean stream) throws SocketException {
  FileDescriptor fd;
  try {
    fd = Libcore.os.socket(AF_INET6, stream ? SOCK_STREAM : SOCK_DGRAM, 0);
    // The RFC (http://www.ietf.org/rfc/rfc3493.txt) says that IPV6_MULTICAST_HOPS defaults
    // to 1. The Linux kernel (at least up to 2.6.38) accidentally defaults to 64 (which
    // would be correct for the *unicast* hop limit).
    // See http://www.spinics.net/lists/netdev/msg129022.html, though no patch appears to
    // have been applied as a result of that discussion. If that bug is ever fixed, we can
    // remove this code. Until then, we manually set the hop limit on IPv6 datagram sockets.
    // (IPv4 is already correct.)
    if (!stream) {
      Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, 1);
    }
    return fd;
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsSocketException();
  }
}
libcore.ioOssocket

Popular methods of Os

  • accept
  • access
  • bind
  • chmod
  • chown
  • close
  • connect
  • dup
  • dup2
  • environ
  • execv
  • execve
  • execv,
  • execve,
  • fchmod,
  • fchown,
  • fcntlFlock,
  • fcntlLong,
  • fcntlVoid,
  • fdatasync,
  • fstat,
  • fstatvfs

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
  • setContentView (Activity)
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
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