public class NGUnixDomainServerSocket extends 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,
String path)
Constructs and binds a Unix domain server socket to the specified path with the specified
listen backlog.
|
NGUnixDomainServerSocket(String path)
Constructs and binds a Unix domain server socket to the specified path.
|
Modifier and Type | Method and Description |
---|---|
Socket |
accept() |
void |
bind(SocketAddress endpoint) |
void |
close() |
bind, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toString
public NGUnixDomainServerSocket() throws IOException
IOException
public NGUnixDomainServerSocket(int backlog) throws IOException
IOException
public NGUnixDomainServerSocket(String path) throws IOException
IOException
public NGUnixDomainServerSocket(int backlog, String path) throws IOException
IOException
public void bind(SocketAddress endpoint) throws IOException
bind
in class ServerSocket
IOException
public Socket accept() throws IOException
accept
in class ServerSocket
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class ServerSocket
IOException
Copyright © 2024. All rights reserved.