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, toString
public NGUnixDomainServerSocket() throws java.io.IOException
java.io.IOException
public NGUnixDomainServerSocket(int backlog) throws java.io.IOException
java.io.IOException
public NGUnixDomainServerSocket(java.lang.String path) throws java.io.IOException
java.io.IOException
public NGUnixDomainServerSocket(int backlog, java.lang.String path) throws java.io.IOException
java.io.IOException
public void bind(java.net.SocketAddress endpoint) throws java.io.IOException
bind
in class java.net.ServerSocket
java.io.IOException
public java.net.Socket accept() throws java.io.IOException
accept
in class java.net.ServerSocket
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.net.ServerSocket
java.io.IOException