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

How to use
socketpair
method
in
libcore.io.Os

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

origin: robovm/robovm

public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); }
public StructStat stat(String path) throws ErrnoException { return os.stat(path); }
origin: robovm/robovm

@Override public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException {
  os.socketpair(domain, type, protocol, fd1, fd2);
  tagSocket(fd1);
  tagSocket(fd2);
}
origin: robovm/robovm

public PipeImpl(SelectorProvider selectorProvider) throws IOException {
  try {
    FileDescriptor fd1 = new FileDescriptor();
    FileDescriptor fd2 = new FileDescriptor();
    Libcore.os.socketpair(AF_UNIX, SOCK_STREAM, 0, fd1, fd2);
    // It doesn't matter which file descriptor we use for which end;
    // they're guaranteed to be indistinguishable.
    this.sink = new PipeSinkChannel(selectorProvider, fd1);
    this.source = new PipeSourceChannel(selectorProvider, fd2);
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsIOException();
  }
}
origin: com.gluonhq/robovm-rt

public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); }
public StructStat stat(String path) throws ErrnoException { return os.stat(path); }
origin: MobiVM/robovm

public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); }
public StructStat stat(String path) throws ErrnoException { return os.stat(path); }
origin: com.bugvm/bugvm-rt

public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); }
public StructStat stat(String path) throws ErrnoException { return os.stat(path); }
origin: ibinti/bugvm

public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); }
public StructStat stat(String path) throws ErrnoException { return os.stat(path); }
origin: com.mobidevelop.robovm/robovm-rt

public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); }
public StructStat stat(String path) throws ErrnoException { return os.stat(path); }
origin: com.bugvm/bugvm-rt

@Override public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException {
  os.socketpair(domain, type, protocol, fd1, fd2);
  tagSocket(fd1);
  tagSocket(fd2);
}
origin: ibinti/bugvm

@Override public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException {
  os.socketpair(domain, type, protocol, fd1, fd2);
  tagSocket(fd1);
  tagSocket(fd2);
}
origin: com.gluonhq/robovm-rt

@Override public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException {
  os.socketpair(domain, type, protocol, fd1, fd2);
  tagSocket(fd1);
  tagSocket(fd2);
}
origin: MobiVM/robovm

@Override public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException {
  os.socketpair(domain, type, protocol, fd1, fd2);
  tagSocket(fd1);
  tagSocket(fd2);
}
origin: com.mobidevelop.robovm/robovm-rt

@Override public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException {
  os.socketpair(domain, type, protocol, fd1, fd2);
  tagSocket(fd1);
  tagSocket(fd2);
}
origin: FlexoVM/flexovm

@Override public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException {
  os.socketpair(domain, type, protocol, fd1, fd2);
  tagSocket(fd1);
  tagSocket(fd2);
}
origin: MobiVM/robovm

public PipeImpl(SelectorProvider selectorProvider) throws IOException {
  try {
    FileDescriptor fd1 = new FileDescriptor();
    FileDescriptor fd2 = new FileDescriptor();
    Libcore.os.socketpair(AF_UNIX, SOCK_STREAM, 0, fd1, fd2);
    // It doesn't matter which file descriptor we use for which end;
    // they're guaranteed to be indistinguishable.
    this.sink = new PipeSinkChannel(selectorProvider, fd1);
    this.source = new PipeSourceChannel(selectorProvider, fd2);
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsIOException();
  }
}
origin: com.gluonhq/robovm-rt

public PipeImpl(SelectorProvider selectorProvider) throws IOException {
  try {
    FileDescriptor fd1 = new FileDescriptor();
    FileDescriptor fd2 = new FileDescriptor();
    Libcore.os.socketpair(AF_UNIX, SOCK_STREAM, 0, fd1, fd2);
    // It doesn't matter which file descriptor we use for which end;
    // they're guaranteed to be indistinguishable.
    this.sink = new PipeSinkChannel(selectorProvider, fd1);
    this.source = new PipeSourceChannel(selectorProvider, fd2);
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsIOException();
  }
}
origin: ibinti/bugvm

public PipeImpl(SelectorProvider selectorProvider) throws IOException {
  try {
    FileDescriptor fd1 = new FileDescriptor();
    FileDescriptor fd2 = new FileDescriptor();
    Libcore.os.socketpair(AF_UNIX, SOCK_STREAM, 0, fd1, fd2);
    // It doesn't matter which file descriptor we use for which end;
    // they're guaranteed to be indistinguishable.
    this.sink = new PipeSinkChannel(selectorProvider, fd1);
    this.source = new PipeSourceChannel(selectorProvider, fd2);
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsIOException();
  }
}
origin: com.bugvm/bugvm-rt

public PipeImpl(SelectorProvider selectorProvider) throws IOException {
  try {
    FileDescriptor fd1 = new FileDescriptor();
    FileDescriptor fd2 = new FileDescriptor();
    Libcore.os.socketpair(AF_UNIX, SOCK_STREAM, 0, fd1, fd2);
    // It doesn't matter which file descriptor we use for which end;
    // they're guaranteed to be indistinguishable.
    this.sink = new PipeSinkChannel(selectorProvider, fd1);
    this.source = new PipeSourceChannel(selectorProvider, fd2);
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsIOException();
  }
}
origin: com.mobidevelop.robovm/robovm-rt

public PipeImpl(SelectorProvider selectorProvider) throws IOException {
  try {
    FileDescriptor fd1 = new FileDescriptor();
    FileDescriptor fd2 = new FileDescriptor();
    Libcore.os.socketpair(AF_UNIX, SOCK_STREAM, 0, fd1, fd2);
    // It doesn't matter which file descriptor we use for which end;
    // they're guaranteed to be indistinguishable.
    this.sink = new PipeSinkChannel(selectorProvider, fd1);
    this.source = new PipeSourceChannel(selectorProvider, fd2);
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsIOException();
  }
}
origin: FlexoVM/flexovm

public PipeImpl(SelectorProvider selectorProvider) throws IOException {
  try {
    FileDescriptor fd1 = new FileDescriptor();
    FileDescriptor fd2 = new FileDescriptor();
    Libcore.os.socketpair(AF_UNIX, SOCK_STREAM, 0, fd1, fd2);
    // It doesn't matter which file descriptor we use for which end;
    // they're guaranteed to be indistinguishable.
    this.sink = new PipeSinkChannel(selectorProvider, fd1);
    this.source = new PipeSourceChannel(selectorProvider, fd2);
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsIOException();
  }
}
libcore.ioOssocketpair

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
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • putExtra (Intent)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • PhpStorm for WordPress
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