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

How to use
sendto
method
in
libcore.io.Os

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

origin: robovm/robovm

public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { return os.sendto(fd, buffer, flags, inetAddress, port); }
public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { return os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port); }
origin: robovm/robovm

public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { return os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port); }
public void setegid(int egid) throws ErrnoException { os.setegid(egid); }
origin: robovm/robovm

@Override
protected void sendUrgentData(int value) throws IOException {
  try {
    byte[] buffer = new byte[] { (byte) value };
    Libcore.os.sendto(fd, buffer, 0, 1, MSG_OOB, null, 0);
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsSocketException();
  }
}
origin: robovm/robovm

public static int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws IOException {
  boolean isDatagram = (inetAddress != null);
  if (!isDatagram && byteCount <= 0) {
    return 0;
  }
  int result;
  try {
    result = Libcore.os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
  } catch (ErrnoException errnoException) {
    result = maybeThrowAfterSendto(isDatagram, errnoException);
  }
  return result;
}
origin: robovm/robovm

public static int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws IOException {
  boolean isDatagram = (inetAddress != null);
  if (!isDatagram && buffer.remaining() == 0) {
    return 0;
  }
  int result;
  try {
    result = Libcore.os.sendto(fd, buffer, flags, inetAddress, port);
  } catch (ErrnoException errnoException) {
    result = maybeThrowAfterSendto(isDatagram, errnoException);
  }
  return result;
}
origin: robovm/robovm

@Override public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException {
  // We permit datagrams without hostname lookups.
  if (inetAddress != null) {
    BlockGuard.getThreadPolicy().onNetwork();
  }
  return os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
}
origin: robovm/robovm

@Override public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException {
  BlockGuard.getThreadPolicy().onNetwork();
  return os.sendto(fd, buffer, flags, inetAddress, port);
}
origin: ibinti/bugvm

@Override
protected void sendUrgentData(int value) throws IOException {
  try {
    byte[] buffer = new byte[] { (byte) value };
    Libcore.os.sendto(fd, buffer, 0, 1, MSG_OOB, null, 0);
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsSocketException();
  }
}
origin: com.bugvm/bugvm-rt

@Override
protected void sendUrgentData(int value) throws IOException {
  try {
    byte[] buffer = new byte[] { (byte) value };
    Libcore.os.sendto(fd, buffer, 0, 1, MSG_OOB, null, 0);
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsSocketException();
  }
}
origin: com.gluonhq/robovm-rt

@Override
protected void sendUrgentData(int value) throws IOException {
  try {
    byte[] buffer = new byte[] { (byte) value };
    Libcore.os.sendto(fd, buffer, 0, 1, MSG_OOB, null, 0);
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsSocketException();
  }
}
origin: MobiVM/robovm

@Override
protected void sendUrgentData(int value) throws IOException {
  try {
    byte[] buffer = new byte[] { (byte) value };
    Libcore.os.sendto(fd, buffer, 0, 1, MSG_OOB, null, 0);
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsSocketException();
  }
}
origin: MobiVM/robovm

public static int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws IOException {
  boolean isDatagram = (inetAddress != null);
  if (!isDatagram && byteCount <= 0) {
    return 0;
  }
  int result;
  try {
    result = Libcore.os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
  } catch (ErrnoException errnoException) {
    result = maybeThrowAfterSendto(isDatagram, errnoException);
  }
  return result;
}
origin: com.mobidevelop.robovm/robovm-rt

@Override
protected void sendUrgentData(int value) throws IOException {
  try {
    byte[] buffer = new byte[] { (byte) value };
    Libcore.os.sendto(fd, buffer, 0, 1, MSG_OOB, null, 0);
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsSocketException();
  }
}
origin: FlexoVM/flexovm

@Override
protected void sendUrgentData(int value) throws IOException {
  try {
    byte[] buffer = new byte[] { (byte) value };
    Libcore.os.sendto(fd, buffer, 0, 1, MSG_OOB, null, 0);
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsSocketException();
  }
}
origin: ibinti/bugvm

@Override public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException {
  // We permit datagrams without hostname lookups.
  if (inetAddress != null) {
    BlockGuard.getThreadPolicy().onNetwork();
  }
  return os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
}
origin: MobiVM/robovm

@Override public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException {
  // We permit datagrams without hostname lookups.
  if (inetAddress != null) {
    BlockGuard.getThreadPolicy().onNetwork();
  }
  return os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
}
origin: com.mobidevelop.robovm/robovm-rt

@Override public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException {
  // We permit datagrams without hostname lookups.
  if (inetAddress != null) {
    BlockGuard.getThreadPolicy().onNetwork();
  }
  return os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
}
origin: com.gluonhq/robovm-rt

@Override public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException {
  // We permit datagrams without hostname lookups.
  if (inetAddress != null) {
    BlockGuard.getThreadPolicy().onNetwork();
  }
  return os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
}
origin: com.bugvm/bugvm-rt

@Override public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException {
  // We permit datagrams without hostname lookups.
  if (inetAddress != null) {
    BlockGuard.getThreadPolicy().onNetwork();
  }
  return os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
}
origin: MobiVM/robovm

@Override public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException {
  BlockGuard.getThreadPolicy().onNetwork();
  return os.sendto(fd, buffer, flags, inetAddress, port);
}
libcore.ioOssendto

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

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Permission (java.security)
    Legacy security code; do not use.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Top plugins for Android Studio
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