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.IOException
public UnixServerSocket(String address) throws IOException
address
- Path to the socket.IOException
public UnixSocket accept() throws IOException
IOException
public void close() throws IOException
IOException
public void bind(UnixSocketAddress address) throws IOException
address
- Path to the socket.IOException
public void bind(String address) throws IOException
address
- Path to the socket.IOException
public UnixSocketAddress getAddress()
public boolean isClosed()
public boolean isBound()