|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcx.ath.matthew.unix.UnixServerSocket
public class UnixServerSocket
Represents a listening UNIX Socket.
| Constructor Summary | |
|---|---|
UnixServerSocket()
Create an un-bound server socket. |
|
UnixServerSocket(String address)
Create a server socket bound to the given address. |
|
UnixServerSocket(UnixSocketAddress address)
Create a server socket bound to the given address. |
|
| Method Summary | |
|---|---|
UnixSocket |
accept()
Accepts a connection on the ServerSocket. |
void |
bind(String address)
Binds a server socket to the given address. |
void |
bind(UnixSocketAddress 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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| Method Detail |
|---|
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.
IOExceptionpublic UnixSocketAddress getAddress()
public boolean isClosed()
public boolean isBound()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||