congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Os.bind
Code IndexAdd Tabnine to your IDE (free)

How to use
bind
method
in
libcore.io.Os

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

origin: robovm/robovm

public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { os.bind(fd, address, port); }
public void chmod(String path, int mode) throws ErrnoException { os.chmod(path, mode); }
origin: robovm/robovm

public static void bind(FileDescriptor fd, InetAddress address, int port) throws SocketException {
  if (address instanceof Inet6Address && ((Inet6Address) address).getScopeId() == 0) {
    // Linux won't let you bind a link-local address without a scope id. Find one.
    NetworkInterface nif = NetworkInterface.getByInetAddress(address);
    if (nif == null) {
      throw new SocketException("Can't bind to a link-local address without a scope id: " + address);
    }
    try {
      address = Inet6Address.getByAddress(address.getHostName(), address.getAddress(), nif.getIndex());
    } catch (UnknownHostException ex) {
      throw new AssertionError(ex); // Can't happen.
    }
  }
  try {
    Libcore.os.bind(fd, address, port);
  } catch (ErrnoException errnoException) {
    throw new BindException(errnoException.getMessage(), errnoException);
  }
}
origin: MobiVM/robovm

public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { os.bind(fd, address, port); }
public void chmod(String path, int mode) throws ErrnoException { os.chmod(path, mode); }
origin: ibinti/bugvm

public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { os.bind(fd, address, port); }
public void chmod(String path, int mode) throws ErrnoException { os.chmod(path, mode); }
origin: com.bugvm/bugvm-rt

public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { os.bind(fd, address, port); }
public void chmod(String path, int mode) throws ErrnoException { os.chmod(path, mode); }
origin: com.mobidevelop.robovm/robovm-rt

public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { os.bind(fd, address, port); }
public void chmod(String path, int mode) throws ErrnoException { os.chmod(path, mode); }
origin: com.gluonhq/robovm-rt

public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { os.bind(fd, address, port); }
public void chmod(String path, int mode) throws ErrnoException { os.chmod(path, mode); }
origin: FlexoVM/flexovm

public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { os.bind(fd, address, port); }
public void chmod(String path, int mode) throws ErrnoException { os.chmod(path, mode); }
origin: com.mobidevelop.robovm/robovm-rt

public static void bind(FileDescriptor fd, InetAddress address, int port) throws SocketException {
  if (address instanceof Inet6Address && ((Inet6Address) address).getScopeId() == 0) {
    // Linux won't let you bind a link-local address without a scope id. Find one.
    NetworkInterface nif = NetworkInterface.getByInetAddress(address);
    if (nif == null) {
      throw new SocketException("Can't bind to a link-local address without a scope id: " + address);
    }
    try {
      address = Inet6Address.getByAddress(address.getHostName(), address.getAddress(), nif.getIndex());
    } catch (UnknownHostException ex) {
      throw new AssertionError(ex); // Can't happen.
    }
  }
  try {
    Libcore.os.bind(fd, address, port);
  } catch (ErrnoException errnoException) {
    throw new BindException(errnoException.getMessage(), errnoException);
  }
}
origin: ibinti/bugvm

public static void bind(FileDescriptor fd, InetAddress address, int port) throws SocketException {
  if (address instanceof Inet6Address && ((Inet6Address) address).getScopeId() == 0) {
    // Linux won't let you bind a link-local address without a scope id. Find one.
    NetworkInterface nif = NetworkInterface.getByInetAddress(address);
    if (nif == null) {
      throw new SocketException("Can't bind to a link-local address without a scope id: " + address);
    }
    try {
      address = Inet6Address.getByAddress(address.getHostName(), address.getAddress(), nif.getIndex());
    } catch (UnknownHostException ex) {
      throw new AssertionError(ex); // Can't happen.
    }
  }
  try {
    Libcore.os.bind(fd, address, port);
  } catch (ErrnoException errnoException) {
    throw new BindException(errnoException.getMessage(), errnoException);
  }
}
origin: MobiVM/robovm

public static void bind(FileDescriptor fd, InetAddress address, int port) throws SocketException {
  if (address instanceof Inet6Address && ((Inet6Address) address).getScopeId() == 0) {
    // Linux won't let you bind a link-local address without a scope id. Find one.
    NetworkInterface nif = NetworkInterface.getByInetAddress(address);
    if (nif == null) {
      throw new SocketException("Can't bind to a link-local address without a scope id: " + address);
    }
    try {
      address = Inet6Address.getByAddress(address.getHostName(), address.getAddress(), nif.getIndex());
    } catch (UnknownHostException ex) {
      throw new AssertionError(ex); // Can't happen.
    }
  }
  try {
    Libcore.os.bind(fd, address, port);
  } catch (ErrnoException errnoException) {
    throw new BindException(errnoException.getMessage(), errnoException);
  }
}
origin: com.bugvm/bugvm-rt

public static void bind(FileDescriptor fd, InetAddress address, int port) throws SocketException {
  if (address instanceof Inet6Address && ((Inet6Address) address).getScopeId() == 0) {
    // Linux won't let you bind a link-local address without a scope id. Find one.
    NetworkInterface nif = NetworkInterface.getByInetAddress(address);
    if (nif == null) {
      throw new SocketException("Can't bind to a link-local address without a scope id: " + address);
    }
    try {
      address = Inet6Address.getByAddress(address.getHostName(), address.getAddress(), nif.getIndex());
    } catch (UnknownHostException ex) {
      throw new AssertionError(ex); // Can't happen.
    }
  }
  try {
    Libcore.os.bind(fd, address, port);
  } catch (ErrnoException errnoException) {
    throw new BindException(errnoException.getMessage(), errnoException);
  }
}
origin: com.gluonhq/robovm-rt

public static void bind(FileDescriptor fd, InetAddress address, int port) throws SocketException {
  if (address instanceof Inet6Address && ((Inet6Address) address).getScopeId() == 0) {
    // Linux won't let you bind a link-local address without a scope id. Find one.
    NetworkInterface nif = NetworkInterface.getByInetAddress(address);
    if (nif == null) {
      throw new SocketException("Can't bind to a link-local address without a scope id: " + address);
    }
    try {
      address = Inet6Address.getByAddress(address.getHostName(), address.getAddress(), nif.getIndex());
    } catch (UnknownHostException ex) {
      throw new AssertionError(ex); // Can't happen.
    }
  }
  try {
    Libcore.os.bind(fd, address, port);
  } catch (ErrnoException errnoException) {
    throw new BindException(errnoException.getMessage(), errnoException);
  }
}
origin: FlexoVM/flexovm

public static void bind(FileDescriptor fd, InetAddress address, int port) throws SocketException {
  if (address instanceof Inet6Address && ((Inet6Address) address).getScopeId() == 0) {
    // Linux won't let you bind a link-local address without a scope id. Find one.
    NetworkInterface nif = NetworkInterface.getByInetAddress(address);
    if (nif == null) {
      throw new SocketException("Can't bind to a link-local address without a scope id: " + address);
    }
    try {
      address = Inet6Address.getByAddress(address.getHostName(), address.getAddress(), nif.getIndex());
    } catch (UnknownHostException ex) {
      throw new AssertionError(ex); // Can't happen.
    }
  }
  try {
    Libcore.os.bind(fd, address, port);
  } catch (ErrnoException errnoException) {
    throw new BindException(errnoException.getMessage(), errnoException);
  }
}
libcore.ioOsbind

Popular methods of Os

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

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for WebStorm
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