public class UnixServerSocket
extends java.lang.Object
Constructor | Description |
---|---|
UnixServerSocket() |
Create an un-bound server socket.
|
UnixServerSocket(UnixSocketAddress address) |
Create a server socket bound to the given address.
|
UnixServerSocket(java.lang.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(java.lang.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 java.io.IOException
address
- Path to the socket.java.io.IOException
public UnixServerSocket(java.lang.String address) throws java.io.IOException
address
- Path to the socket.java.io.IOException
public UnixSocket accept() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public void bind(UnixSocketAddress address) throws java.io.IOException
address
- Path to the socket.java.io.IOException
public void bind(java.lang.String address) throws java.io.IOException
address
- Path to the socket.java.io.IOException
public UnixSocketAddress getAddress()
public boolean isClosed()
public boolean isBound()