public class AFUNIXSocketAddress
extends java.net.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(java.io.File socketFile)
Creates a new
AFUNIXSocketAddress that points to the AF_UNIX
socket specified by the given file. |
AFUNIXSocketAddress(java.io.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 |
|---|---|
java.lang.String |
getSocketFile()
Returns the (canonical) file path for this
AFUNIXSocketAddress. |
java.lang.String |
toString() |
public AFUNIXSocketAddress(java.io.File socketFile)
throws java.io.IOException
AFUNIXSocketAddress that points to the AF_UNIX
socket specified by the given file.socketFile - java.io.IOExceptionpublic AFUNIXSocketAddress(java.io.File socketFile,
int port)
throws java.io.IOException
AFUNIXSocketAddress that points to the AF_UNIX
socket specified by the given file, assigning the given port to it.socketFile - port - java.io.IOExceptionpublic java.lang.String getSocketFile()
AFUNIXSocketAddress.public java.lang.String toString()
toString in class java.net.InetSocketAddress