Tabnine Logo
Os.setsockoptInt
Code IndexAdd Tabnine to your IDE (free)

How to use
setsockoptInt
method
in
libcore.io.Os

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

origin: robovm/robovm

public void setsockoptInt(FileDescriptor fd, int level, int option, int value) throws ErrnoException { os.setsockoptInt(fd, level, option, value); }
public void setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) throws ErrnoException { os.setsockoptIpMreqn(fd, level, option, value); }
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: robovm/robovm

  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_IF, (Integer) value);
  return;
case SocketOptions.IP_MULTICAST_LOOP:
  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, booleanToInt((Boolean) value));
  return;
case IoBridge.JAVA_IP_MULTICAST_TTL:
  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, (Integer) value);
  return;
case SocketOptions.IP_TOS:
  Libcore.os.setsockoptInt(fd, IPPROTO_IP, IP_TOS, (Integer) value);
  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_TCLASS, (Integer) value);
  return;
case SocketOptions.SO_BROADCAST:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_BROADCAST, booleanToInt((Boolean) value));
  return;
case SocketOptions.SO_KEEPALIVE:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_KEEPALIVE, booleanToInt((Boolean) value));
  return;
case SocketOptions.SO_LINGER:
  return;
case SocketOptions.SO_OOBINLINE:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_OOBINLINE, booleanToInt((Boolean) value));
  return;
case SocketOptions.SO_RCVBUF:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_RCVBUF, (Integer) value);
  return;
origin: com.mobidevelop.robovm/robovm-rt

public void setsockoptInt(FileDescriptor fd, int level, int option, int value) throws ErrnoException { os.setsockoptInt(fd, level, option, value); }
public void setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) throws ErrnoException { os.setsockoptIpMreqn(fd, level, option, value); }
origin: MobiVM/robovm

public void setsockoptInt(FileDescriptor fd, int level, int option, int value) throws ErrnoException { os.setsockoptInt(fd, level, option, value); }
public void setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) throws ErrnoException { os.setsockoptIpMreqn(fd, level, option, value); }
origin: FlexoVM/flexovm

public void setsockoptInt(FileDescriptor fd, int level, int option, int value) throws ErrnoException { os.setsockoptInt(fd, level, option, value); }
public void setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) throws ErrnoException { os.setsockoptIpMreqn(fd, level, option, value); }
origin: ibinti/bugvm

public void setsockoptInt(FileDescriptor fd, int level, int option, int value) throws ErrnoException { os.setsockoptInt(fd, level, option, value); }
public void setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) throws ErrnoException { os.setsockoptIpMreqn(fd, level, option, value); }
origin: com.bugvm/bugvm-rt

public void setsockoptInt(FileDescriptor fd, int level, int option, int value) throws ErrnoException { os.setsockoptInt(fd, level, option, value); }
public void setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) throws ErrnoException { os.setsockoptIpMreqn(fd, level, option, value); }
origin: com.gluonhq/robovm-rt

public void setsockoptInt(FileDescriptor fd, int level, int option, int value) throws ErrnoException { os.setsockoptInt(fd, level, option, value); }
public void setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) throws ErrnoException { os.setsockoptIpMreqn(fd, level, option, value); }
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.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: FlexoVM/flexovm

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

  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_IF, (Integer) value);
  return;
case SocketOptions.IP_MULTICAST_LOOP:
  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, booleanToInt((Boolean) value));
  return;
case IoBridge.JAVA_IP_MULTICAST_TTL:
  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, (Integer) value);
  return;
case SocketOptions.IP_TOS:
  Libcore.os.setsockoptInt(fd, IPPROTO_IP, IP_TOS, (Integer) value);
  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_TCLASS, (Integer) value);
  return;
case SocketOptions.SO_BROADCAST:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_BROADCAST, booleanToInt((Boolean) value));
  return;
case SocketOptions.SO_KEEPALIVE:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_KEEPALIVE, booleanToInt((Boolean) value));
  return;
case SocketOptions.SO_LINGER:
  return;
case SocketOptions.SO_OOBINLINE:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_OOBINLINE, booleanToInt((Boolean) value));
  return;
case SocketOptions.SO_RCVBUF:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_RCVBUF, (Integer) value);
  return;
origin: com.bugvm/bugvm-rt

  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_IF, (Integer) value);
  return;
case SocketOptions.IP_MULTICAST_LOOP:
  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, booleanToInt((Boolean) value));
  return;
case IoBridge.JAVA_IP_MULTICAST_TTL:
  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, (Integer) value);
  return;
case SocketOptions.IP_TOS:
  Libcore.os.setsockoptInt(fd, IPPROTO_IP, IP_TOS, (Integer) value);
  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_TCLASS, (Integer) value);
  return;
case SocketOptions.SO_BROADCAST:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_BROADCAST, booleanToInt((Boolean) value));
  return;
case SocketOptions.SO_KEEPALIVE:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_KEEPALIVE, booleanToInt((Boolean) value));
  return;
case SocketOptions.SO_LINGER:
  return;
case SocketOptions.SO_OOBINLINE:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_OOBINLINE, booleanToInt((Boolean) value));
  return;
case SocketOptions.SO_RCVBUF:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_RCVBUF, (Integer) value);
  return;
origin: ibinti/bugvm

  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_IF, (Integer) value);
  return;
case SocketOptions.IP_MULTICAST_LOOP:
  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, booleanToInt((Boolean) value));
  return;
case IoBridge.JAVA_IP_MULTICAST_TTL:
  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, (Integer) value);
  return;
case SocketOptions.IP_TOS:
  Libcore.os.setsockoptInt(fd, IPPROTO_IP, IP_TOS, (Integer) value);
  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_TCLASS, (Integer) value);
  return;
case SocketOptions.SO_BROADCAST:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_BROADCAST, booleanToInt((Boolean) value));
  return;
case SocketOptions.SO_KEEPALIVE:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_KEEPALIVE, booleanToInt((Boolean) value));
  return;
case SocketOptions.SO_LINGER:
  return;
case SocketOptions.SO_OOBINLINE:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_OOBINLINE, booleanToInt((Boolean) value));
  return;
case SocketOptions.SO_RCVBUF:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_RCVBUF, (Integer) value);
  return;
origin: FlexoVM/flexovm

  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_IF, (Integer) value);
  return;
case SocketOptions.IP_MULTICAST_LOOP:
  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, booleanToInt((Boolean) value));
  return;
case IoBridge.JAVA_IP_MULTICAST_TTL:
  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, (Integer) value);
  return;
case SocketOptions.IP_TOS:
  Libcore.os.setsockoptInt(fd, IPPROTO_IP, IP_TOS, (Integer) value);
  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_TCLASS, (Integer) value);
  return;
case SocketOptions.SO_BROADCAST:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_BROADCAST, booleanToInt((Boolean) value));
  return;
case SocketOptions.SO_KEEPALIVE:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_KEEPALIVE, booleanToInt((Boolean) value));
  return;
case SocketOptions.SO_LINGER:
  return;
case SocketOptions.SO_OOBINLINE:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_OOBINLINE, booleanToInt((Boolean) value));
  return;
case SocketOptions.SO_RCVBUF:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_RCVBUF, (Integer) value);
  return;
origin: com.mobidevelop.robovm/robovm-rt

  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_IF, (Integer) value);
  return;
case SocketOptions.IP_MULTICAST_LOOP:
  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, booleanToInt((Boolean) value));
  return;
case IoBridge.JAVA_IP_MULTICAST_TTL:
  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, (Integer) value);
  return;
case SocketOptions.IP_TOS:
  Libcore.os.setsockoptInt(fd, IPPROTO_IP, IP_TOS, (Integer) value);
  Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_TCLASS, (Integer) value);
  return;
case SocketOptions.SO_BROADCAST:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_BROADCAST, booleanToInt((Boolean) value));
  return;
case SocketOptions.SO_KEEPALIVE:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_KEEPALIVE, booleanToInt((Boolean) value));
  return;
case SocketOptions.SO_LINGER:
  return;
case SocketOptions.SO_OOBINLINE:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_OOBINLINE, booleanToInt((Boolean) value));
  return;
case SocketOptions.SO_RCVBUF:
  Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_RCVBUF, (Integer) value);
  return;
libcore.ioOssetsockoptInt

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

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • setScale (BigDecimal)
  • getSharedPreferences (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • BoxLayout (javax.swing)
  • JLabel (javax.swing)
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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