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