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

How to use
connectDetail
method
in
libcore.io.IoBridge

Best Java code snippets using libcore.io.IoBridge.connectDetail (Showing top 20 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: robovm/robovm

String detail = connectDetail(inetAddress, port, timeoutMs, cause);
if (cause.errno == ETIMEDOUT) {
  throw new SocketTimeoutException(detail, cause);
origin: robovm/robovm

remainingTimeoutMs = (int) (finishTimeMs - System.currentTimeMillis());
if (remainingTimeoutMs <= 0) {
  throw new SocketTimeoutException(connectDetail(inetAddress, port, timeoutMs, null));
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: 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: 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: 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);
  }
}
origin: com.mobidevelop.robovm/robovm-rt

String detail = connectDetail(inetAddress, port, timeoutMs, cause);
if (cause.errno == ETIMEDOUT) {
  throw new SocketTimeoutException(detail, cause);
origin: com.bugvm/bugvm-rt

String detail = connectDetail(inetAddress, port, timeoutMs, cause);
if (cause.errno == ETIMEDOUT) {
  throw new SocketTimeoutException(detail, cause);
origin: MobiVM/robovm

String detail = connectDetail(inetAddress, port, timeoutMs, cause);
if (cause.errno == ETIMEDOUT) {
  throw new SocketTimeoutException(detail, cause);
origin: ibinti/bugvm

String detail = connectDetail(inetAddress, port, timeoutMs, cause);
if (cause.errno == ETIMEDOUT) {
  throw new SocketTimeoutException(detail, cause);
origin: com.gluonhq/robovm-rt

String detail = connectDetail(inetAddress, port, timeoutMs, cause);
if (cause.errno == ETIMEDOUT) {
  throw new SocketTimeoutException(detail, cause);
origin: FlexoVM/flexovm

String detail = connectDetail(inetAddress, port, timeoutMs, cause);
if (cause.errno == ETIMEDOUT) {
  throw new SocketTimeoutException(detail, cause);
origin: com.gluonhq/robovm-rt

remainingTimeoutMs = (int) (finishTimeMs - System.currentTimeMillis());
if (remainingTimeoutMs <= 0) {
  throw new SocketTimeoutException(connectDetail(inetAddress, port, timeoutMs, null));
origin: MobiVM/robovm

remainingTimeoutMs = (int) (finishTimeMs - System.currentTimeMillis());
if (remainingTimeoutMs <= 0) {
  throw new SocketTimeoutException(connectDetail(inetAddress, port, timeoutMs, null));
origin: ibinti/bugvm

remainingTimeoutMs = (int) (finishTimeMs - System.currentTimeMillis());
if (remainingTimeoutMs <= 0) {
  throw new SocketTimeoutException(connectDetail(inetAddress, port, timeoutMs, null));
origin: com.mobidevelop.robovm/robovm-rt

remainingTimeoutMs = (int) (finishTimeMs - System.currentTimeMillis());
if (remainingTimeoutMs <= 0) {
  throw new SocketTimeoutException(connectDetail(inetAddress, port, timeoutMs, null));
origin: com.bugvm/bugvm-rt

remainingTimeoutMs = (int) (finishTimeMs - System.currentTimeMillis());
if (remainingTimeoutMs <= 0) {
  throw new SocketTimeoutException(connectDetail(inetAddress, port, timeoutMs, null));
libcore.ioIoBridgeconnectDetail

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
  • connectErrno
  • 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

  • Reactive rest calls using spring rest template
  • getSystemService (Context)
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Best IntelliJ plugins
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