|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.Socket
org.newsclub.net.unix.AFUNIXSocket
public class AFUNIXSocket
Implementation of an AF_UNIX domain socket.
Field Summary | |
---|---|
protected org.newsclub.net.unix.AFUNIXSocketImpl |
impl
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.net.Socket |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected org.newsclub.net.unix.AFUNIXSocketImpl impl
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |