public class NGUnixDomainServerSocket
extends java.net.ServerSocket
ServerSocket which binds to a local Unix domain socket
and returns instances of NGUnixDomainSocket from
accept().| Modifier and Type | Class and Description |
|---|---|
static class |
NGUnixDomainServerSocket.NGUnixDomainServerSocketAddress |
| Constructor and Description |
|---|
NGUnixDomainServerSocket()
Constructs an unbound Unix domain server socket.
|
NGUnixDomainServerSocket(int backlog)
Constructs an unbound Unix domain server socket with the specified listen backlog.
|
NGUnixDomainServerSocket(int backlog,
java.lang.String path)
Constructs and binds a Unix domain server socket to the specified path
with the specified listen backlog.
|
NGUnixDomainServerSocket(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 NGUnixDomainServerSocket()
throws java.io.IOException
java.io.IOExceptionpublic NGUnixDomainServerSocket(int backlog)
throws java.io.IOException
java.io.IOExceptionpublic NGUnixDomainServerSocket(java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic NGUnixDomainServerSocket(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