public class AFUNIXSocket
extends java.net.Socket
| Modifier and Type | Field and Description |
|---|---|
protected org.newsclub.net.unix.AFUNIXSocketImpl |
impl |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(java.net.SocketAddress bindpoint)
Binds this
AFUNIXSocket to the given bindpoint. |
void |
connect(java.net.SocketAddress endpoint) |
void |
connect(java.net.SocketAddress endpoint,
int timeout) |
static AFUNIXSocket |
connectTo(AFUNIXSocketAddress addr)
Creates a new
AFUNIXSocket and connects it to the given
AFUNIXSocketAddress. |
static boolean |
isSupported()
Returns
true iff AFUNIXSockets are supported
by the current Java VM. |
static AFUNIXSocket |
newInstance()
Creates a new, unbound
AFUNIXSocket. |
java.lang.String |
toString() |
close, getChannel, getInetAddress, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOutputStream, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutputpublic static AFUNIXSocket newInstance() throws java.io.IOException
AFUNIXSocket.java.io.IOExceptionpublic static AFUNIXSocket connectTo(AFUNIXSocketAddress addr) throws java.io.IOException
AFUNIXSocket and connects it to the given
AFUNIXSocketAddress.addr - java.io.IOExceptionpublic void bind(java.net.SocketAddress bindpoint)
throws java.io.IOException
AFUNIXSocket to the given bindpoint.
Only bindpoints of the type AFUNIXSocketAddress are supported.bind in class java.net.Socketjava.io.IOExceptionpublic void connect(java.net.SocketAddress endpoint)
throws java.io.IOException
connect in class java.net.Socketjava.io.IOExceptionpublic void connect(java.net.SocketAddress endpoint,
int timeout)
throws java.io.IOException
connect in class java.net.Socketjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.net.Socketpublic static boolean isSupported()
true iff AFUNIXSockets are supported
by the current Java VM.
To support AFUNIXSockets, a custom JNI library must be loaded
that is supplied with junixsocket.