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

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Notification (javax.management)
  • JCheckBox (javax.swing)
  • Top 12 Jupyter Notebook Extensions
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