DomainSocket implements Closeable { public static DomainSocket[] socketpair() throws IOException { int fds[] = socketpair0(); return new DomainSocket[] { new DomainSocket("(anonymous0)", fds[0]), new DomainSocket("(anonymous1)", fds[1]) }; } private  DomainSocket(String path, int fd); static String getLoadingFailureReason(); @VisibleForTesting static void disableBindPathValidation(); static String getEffectivePath(String path, int port); static DomainSocket bindAndListen(String path); static DomainSocket[] socketpair(); DomainSocket accept(); static DomainSocket connect(String path); boolean isOpen(); String getPath(); DomainInputStream getInputStream(); DomainOutputStream getOutputStream(); DomainChannel getChannel(); void setAttribute(int type, int size); int getAttribute(int type); @Override void close(); void shutdown(); void sendFileDescriptors(FileDescriptor descriptors[],
      byte jbuf[], int offset, int length); int recvFileInputStreams(FileInputStream[] streams, byte buf[],
        int offset, int length); @Override String toString(); static final int SEND_BUFFER_SIZE; static final int RECEIVE_BUFFER_SIZE; static final int SEND_TIMEOUT; static final int RECEIVE_TIMEOUT; }
@Test(timeout=180000) public void testClientServerOutStreamInStreamWithSocketpair() throws Exception { testClientServer1(OutputStreamWriteStrategy.class, InputStreamReadStrategy.class, DomainSocket.socketpair()); }
@Test(timeout=180000) public void testClientServerOutStreamInDbbWithSocketpair() throws Exception { testClientServer1(OutputStreamWriteStrategy.class, DirectByteBufferReadStrategy.class, DomainSocket.socketpair()); }
@Test(timeout=180000) public void testClientServerOutStreamInAbbWithSocketpair() throws Exception { testClientServer1(OutputStreamWriteStrategy.class, ArrayBackedByteBufferReadStrategy.class, DomainSocket.socketpair()); }