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 AFUNIXSocket s 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, shutdownOutput
public static AFUNIXSocket newInstance() throws java.io.IOException
AFUNIXSocket
.java.io.IOException
public static AFUNIXSocket connectTo(AFUNIXSocketAddress addr) throws java.io.IOException
AFUNIXSocket
and connects it to the given
AFUNIXSocketAddress
.addr
- java.io.IOException
public 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.Socket
java.io.IOException
public void connect(java.net.SocketAddress endpoint) throws java.io.IOException
connect
in class java.net.Socket
java.io.IOException
public void connect(java.net.SocketAddress endpoint, int timeout) throws java.io.IOException
connect
in class java.net.Socket
java.io.IOException
public java.lang.String toString()
toString
in class java.net.Socket
public static boolean isSupported()
true
iff AFUNIXSocket
s are supported
by the current Java VM.
To support AFUNIXSocket
s, a custom JNI library must be loaded
that is supplied with junixsocket.