|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanger.net.IPCServerSocket
public final class IPCServerSocket
The server side of an IPC socket. The public methods mimic the methods from java.io.ServerSocket.
| Constructor Summary | |
|---|---|
IPCServerSocket(String name,
IPCServerSocket.CloseListener closeListener)
Construct an instance. |
|
| Method Summary | |
|---|---|
IPCSocket |
accept()
Accept a connection. |
void |
close()
Close this instance. |
IPCServerSocket.Connector |
getConnector()
Get the associated Connector. |
String |
getName()
Get the name associated with this instance. |
int |
getSoTimeout()
Get the timeout of this instance. |
boolean |
isClosed()
Return whether or not this instance is closed. |
void |
setSoTimeout(int timeout)
Set the timeout of this instance. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IPCServerSocket(String name,
IPCServerSocket.CloseListener closeListener)
name - non-null; the name the instance is bound tocloseListener - null-ok; object to notify when this instance
is closed| Method Detail |
|---|
public String toString()
toString in class Objectpublic String getName()
public IPCServerSocket.Connector getConnector()
RuntimeException - thrown if this method has already been
called
public IPCSocket accept()
throws IOException
InterruptedIOException.
IOException - thrown if there's trouble
public void close()
throws IOException
IOException - thrown if there's troublepublic boolean isClosed()
true iff this instance is closed
public void setSoTimeout(int timeout)
throws SocketException
accept(). If it is passed as 0, then it indicates
that accept calls should block indefinitely.
timeout - >= 0; the new timeout value, in milliseconds
SocketException - thrown if there's troublegetSoTimeout()
public int getSoTimeout()
throws IOException
IOException - thrown if there's troublesetSoTimeout(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||