Tabnine Logo
IoBridge.connectErrno
Code IndexAdd Tabnine to your IDE (free)

How to use
connectErrno
method
in
libcore.io.IoBridge

Best Java code snippets using libcore.io.IoBridge.connectErrno (Showing top 7 results out of 315)

origin: robovm/robovm

/**
 * Connects socket 'fd' to 'inetAddress' on 'port', with a the given 'timeoutMs'.
 * Use timeoutMs == 0 for a blocking connect with no timeout.
 */
public static boolean connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) throws SocketException, SocketTimeoutException {
  try {
    return connectErrno(fd, inetAddress, port, timeoutMs);
  } catch (ErrnoException errnoException) {
    throw new ConnectException(connectDetail(inetAddress, port, timeoutMs, errnoException), errnoException);
  } catch (SocketException ex) {
    throw ex; // We don't want to doubly wrap these.
  } catch (SocketTimeoutException ex) {
    throw ex; // We don't want to doubly wrap these.
  } catch (IOException ex) {
    throw new SocketException(ex);
  }
}
origin: MobiVM/robovm

/**
 * Connects socket 'fd' to 'inetAddress' on 'port', with a the given 'timeoutMs'.
 * Use timeoutMs == 0 for a blocking connect with no timeout.
 */
public static boolean connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) throws SocketException, SocketTimeoutException {
  try {
    return connectErrno(fd, inetAddress, port, timeoutMs);
  } catch (ErrnoException errnoException) {
    throw new ConnectException(connectDetail(inetAddress, port, timeoutMs, errnoException), errnoException);
  } catch (SocketException ex) {
    throw ex; // We don't want to doubly wrap these.
  } catch (SocketTimeoutException ex) {
    throw ex; // We don't want to doubly wrap these.
  } catch (IOException ex) {
    throw new SocketException(ex);
  }
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Connects socket 'fd' to 'inetAddress' on 'port', with a the given 'timeoutMs'.
 * Use timeoutMs == 0 for a blocking connect with no timeout.
 */
public static boolean connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) throws SocketException, SocketTimeoutException {
  try {
    return connectErrno(fd, inetAddress, port, timeoutMs);
  } catch (ErrnoException errnoException) {
    throw new ConnectException(connectDetail(inetAddress, port, timeoutMs, errnoException), errnoException);
  } catch (SocketException ex) {
    throw ex; // We don't want to doubly wrap these.
  } catch (SocketTimeoutException ex) {
    throw ex; // We don't want to doubly wrap these.
  } catch (IOException ex) {
    throw new SocketException(ex);
  }
}
origin: ibinti/bugvm

/**
 * Connects socket 'fd' to 'inetAddress' on 'port', with a the given 'timeoutMs'.
 * Use timeoutMs == 0 for a blocking connect with no timeout.
 */
public static boolean connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) throws SocketException, SocketTimeoutException {
  try {
    return connectErrno(fd, inetAddress, port, timeoutMs);
  } catch (ErrnoException errnoException) {
    throw new ConnectException(connectDetail(inetAddress, port, timeoutMs, errnoException), errnoException);
  } catch (SocketException ex) {
    throw ex; // We don't want to doubly wrap these.
  } catch (SocketTimeoutException ex) {
    throw ex; // We don't want to doubly wrap these.
  } catch (IOException ex) {
    throw new SocketException(ex);
  }
}
origin: com.bugvm/bugvm-rt

/**
 * Connects socket 'fd' to 'inetAddress' on 'port', with a the given 'timeoutMs'.
 * Use timeoutMs == 0 for a blocking connect with no timeout.
 */
public static boolean connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) throws SocketException, SocketTimeoutException {
  try {
    return connectErrno(fd, inetAddress, port, timeoutMs);
  } catch (ErrnoException errnoException) {
    throw new ConnectException(connectDetail(inetAddress, port, timeoutMs, errnoException), errnoException);
  } catch (SocketException ex) {
    throw ex; // We don't want to doubly wrap these.
  } catch (SocketTimeoutException ex) {
    throw ex; // We don't want to doubly wrap these.
  } catch (IOException ex) {
    throw new SocketException(ex);
  }
}
origin: com.gluonhq/robovm-rt

/**
 * Connects socket 'fd' to 'inetAddress' on 'port', with a the given 'timeoutMs'.
 * Use timeoutMs == 0 for a blocking connect with no timeout.
 */
public static boolean connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) throws SocketException, SocketTimeoutException {
  try {
    return connectErrno(fd, inetAddress, port, timeoutMs);
  } catch (ErrnoException errnoException) {
    throw new ConnectException(connectDetail(inetAddress, port, timeoutMs, errnoException), errnoException);
  } catch (SocketException ex) {
    throw ex; // We don't want to doubly wrap these.
  } catch (SocketTimeoutException ex) {
    throw ex; // We don't want to doubly wrap these.
  } catch (IOException ex) {
    throw new SocketException(ex);
  }
}
origin: FlexoVM/flexovm

/**
 * Connects socket 'fd' to 'inetAddress' on 'port', with a the given 'timeoutMs'.
 * Use timeoutMs == 0 for a blocking connect with no timeout.
 */
public static boolean connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) throws SocketException, SocketTimeoutException {
  try {
    return connectErrno(fd, inetAddress, port, timeoutMs);
  } catch (ErrnoException errnoException) {
    throw new ConnectException(connectDetail(inetAddress, port, timeoutMs, errnoException), errnoException);
  } catch (SocketException ex) {
    throw ex; // We don't want to doubly wrap these.
  } catch (SocketTimeoutException ex) {
    throw ex; // We don't want to doubly wrap these.
  } catch (IOException ex) {
    throw new SocketException(ex);
  }
}
libcore.ioIoBridgeconnectErrno

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
  • getSocketLocalAddress
  • getSocketLocalPort
  • getSocketOption
    java.net has its own socket options similar to the underlying Unix ones. We paper over the differenc
  • getSocketOptionErrno
  • isConnected
  • getSocketOptionErrno,
  • isConnected,
  • maybeThrowAfterRecvfrom,
  • maybeThrowAfterSendto,
  • open,
  • postRecvfrom,
  • read,
  • recvfrom,
  • sendto

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Notification (javax.management)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top 17 Free Sublime Text Plugins
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