public class AFUNIXSocketAddress extends InetSocketAddress
InetSocketAddress that actually uses AF_UNIX sockets instead of AF_INET.
The ability to specify a port number is not specified by AF_UNIX sockets, but we need it
sometimes, for example for RMI-over-AF_UNIX.| Constructor and Description |
|---|
AFUNIXSocketAddress(File socketFile)
Creates a new
AFUNIXSocketAddress that points to the AF_UNIX socket specified by the
given file. |
AFUNIXSocketAddress(File socketFile,
int port)
Creates a new
AFUNIXSocketAddress that points to the AF_UNIX socket specified by the
given file, assigning the given port to it. |
| Modifier and Type | Method and Description |
|---|---|
String |
getSocketFile()
Returns the (canonical) file path for this
AFUNIXSocketAddress. |
String |
toString() |
createUnresolved, equals, getAddress, getHostName, getHostString, getPort, hashCode, isUnresolvedpublic AFUNIXSocketAddress(File socketFile) throws IOException
AFUNIXSocketAddress that points to the AF_UNIX socket specified by the
given file.socketFile - The socket to connect to.IOExceptionpublic AFUNIXSocketAddress(File socketFile, int port) throws IOException
AFUNIXSocketAddress that points to the AF_UNIX socket specified by the
given file, assigning the given port to it.socketFile - The socket to connect to.port - The port associated with this socket, or 0 when no port should be assigned.IOExceptionpublic String getSocketFile()
AFUNIXSocketAddress.public String toString()
toString in class InetSocketAddressCopyright © 2009–2014 Kohlschütter Search Intelligence. All rights reserved.