cx.ath.matthew.unix
public class UnixServerSocket extends Object
| Constructor Summary | |
|---|---|
| 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. | |
| Method Summary | |
|---|---|
| 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. |
Parameters: address Path to the socket.
Parameters: address Path to the socket.
Returns: A UnixSocket connected to the accepted connection.
Parameters: address Path to the socket.
Parameters: address Path to the socket.
Returns: The UnixSocketAddress if bound or null if unbound.
Returns: True if bound.
Returns: True if closed.