public class UnixDomainServerSocket
extends java.net.ServerSocket
ServerSocket which binds to a local Unix domain socket
and returns instances of UnixDomainSocket from
accept().| Modifier and Type | Class and Description |
|---|---|
static class |
UnixDomainServerSocket.UnixDomainServerSocketAddress |
| Constructor and Description |
|---|
UnixDomainServerSocket()
Constructs an unbound Unix domain server socket.
|
UnixDomainServerSocket(int backlog)
Constructs an unbound Unix domain server socket with the specified listen backlog.
|
UnixDomainServerSocket(int backlog,
java.lang.String path)
Constructs and binds a Unix domain server socket to the specified path
with the specified listen backlog.
|
UnixDomainServerSocket(java.lang.String path)
Constructs and binds a Unix domain server socket to the specified path.
|
| Modifier and Type | Method and Description |
|---|---|
java.net.Socket |
accept() |
void |
bind(java.net.SocketAddress endpoint) |
void |
close() |
bind, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toStringpublic UnixDomainServerSocket()
throws java.io.IOException
java.io.IOExceptionpublic UnixDomainServerSocket(int backlog)
throws java.io.IOException
java.io.IOExceptionpublic UnixDomainServerSocket(java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic UnixDomainServerSocket(int backlog,
java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic void bind(java.net.SocketAddress endpoint)
throws java.io.IOException
bind in class java.net.ServerSocketjava.io.IOExceptionpublic java.net.Socket accept()
throws java.io.IOException
accept in class java.net.ServerSocketjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.net.ServerSocketjava.io.IOException