APIdia Launch Partner
Top Inners Fields Constructors Methods
sun.nio.ch

pack-priv Class UnixDomainSockets

extends Object
Class Inheritance
Imports
java.io.FileDescriptor, .IOException, java.net.BindException, .SocketAddress, .UnixDomainSocketAddress, java.nio.channels.UnsupportedAddressTypeException, java.nio.file.FileSystems, .InvalidPathException, .Path, java.nio.file.spi.FileSystemProvider, java.security.NoSuchAlgorithmException, .SecureRandom, java.util.Random, sun.nio.fs.AbstractFileSystemProvider

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final Random
private static final boolean
private static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static int
private static native int
pack-priv static void
private static native void
bind0(FileDescriptor fd, byte[] path)

pack-priv static UnixDomainSocketAddress
pack-priv static int
pack-priv static int
private static native int
connect0(FileDescriptor fd, byte[] path)

pack-priv static UnixDomainSocketAddress
generateTempName()

Return a possible temporary name to bind to, which is different for each call Name is of the form <temp dir>/socket_<random>

pack-priv static byte[]
private static Random
private static native boolean
init()

pack-priv static boolean
pack-priv static UnixDomainSocketAddress
private static native byte[]
pack-priv static FileDescriptor
private static native int
pack-priv static UnixDomainSocketAddress
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

randomback to summary
private static final Random random
supportedback to summary
private static final boolean supported
tempDirback to summary
private static final String tempDir

Constructor Detail

UnixDomainSocketsback to summary
private UnixDomainSockets()

Method Detail

acceptback to summary
pack-priv static int accept(FileDescriptor fd, FileDescriptor newfd, String[] paths) throws IOException
accept0back to summary
private static native int accept0(FileDescriptor fd, FileDescriptor newfd, Object[] array) throws IOException
bindback to summary
pack-priv static void bind(FileDescriptor fd, Path addr) throws IOException
bind0back to summary
private static native void bind0(FileDescriptor fd, byte[] path) throws IOException
checkAddressback to summary
pack-priv static UnixDomainSocketAddress checkAddress(SocketAddress sa)
connectback to summary
pack-priv static int connect(FileDescriptor fd, SocketAddress sa) throws IOException
connectback to summary
pack-priv static int connect(FileDescriptor fd, Path path) throws IOException
connect0back to summary
private static native int connect0(FileDescriptor fd, byte[] path) throws IOException
generateTempNameback to summary
pack-priv static UnixDomainSocketAddress generateTempName() throws IOException

Return a possible temporary name to bind to, which is different for each call Name is of the form <temp dir>/socket_<random>

getPathBytesback to summary
pack-priv static byte[] getPathBytes(Path path)
getRandomback to summary
private static Random getRandom()
initback to summary
private static native boolean init()
isSupportedback to summary
pack-priv static boolean isSupported()
localAddressback to summary
pack-priv static UnixDomainSocketAddress localAddress(FileDescriptor fd) throws IOException
localAddress0back to summary
private static native byte[] localAddress0(FileDescriptor fd) throws IOException
socketback to summary
pack-priv static FileDescriptor socket() throws IOException
socket0back to summary
private static native int socket0() throws IOException
unnamedback to summary
pack-priv static UnixDomainSocketAddress unnamed()
sun.nio.ch back to summary

private Class UnixDomainSockets.UnnamedHolder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final UnixDomainSocketAddress

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

UNNAMEDback to summary
pack-priv static final UnixDomainSocketAddress UNNAMED

Constructor Detail

UnnamedHolderback to summary
private UnnamedHolder()