public class UnixServerSocket extends Object
| Constructor | Description |
|---|---|
UnixServerSocket() |
Create an un-bound server socket.
|
UnixServerSocket(UnixSocketAddress address) |
Create a server socket bound to the given address.
|
UnixServerSocket(String address) |
Create a server socket bound to the given address.
|
| Modifier and Type | Method | Description |
|---|---|---|
UnixSocket |
accept() |
Accepts a connection on the ServerSocket.
|
void |
bind(UnixSocketAddress address) |
Binds a server socket to the given address.
|
void |
bind(String address) |
Binds a server socket to the given address.
|
void |
close() |
Closes the ServerSocket.
|
UnixSocketAddress |
getAddress() |
Return the address this socket is bound to.
|
boolean |
isBound() |
Check the status of the socket.
|
boolean |
isClosed() |
Check the status of the socket.
|
public UnixServerSocket()
public UnixServerSocket(UnixSocketAddress address) throws IOException
address - Path to the socket.IOExceptionpublic UnixServerSocket(String address) throws IOException
address - Path to the socket.IOExceptionpublic UnixSocket accept() throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic void bind(UnixSocketAddress address) throws IOException
address - Path to the socket.IOExceptionpublic void bind(String address) throws IOException
address - Path to the socket.IOExceptionpublic UnixSocketAddress getAddress()
public boolean isClosed()
public boolean isBound()