|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--danger.net.IPCServerSocket
The server side of an IPC socket. The public methods mimic the methods from java.io.ServerSocket.
| Inner Class Summary | |
static interface |
IPCServerSocket.CloseListener
Interface for object to be notified when an (outer) instance is closed. |
class |
IPCServerSocket.Connector
Class that is used to cause connections to be made. |
| Constructor Summary | |
IPCServerSocket(java.lang.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. |
java.lang.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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public IPCServerSocket(java.lang.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 java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getName()
public IPCServerSocket.Connector getConnector()
java.lang.RuntimeException - thrown if this method has already been
called
public IPCSocket accept()
throws java.io.IOException
InterruptedIOException.java.io.IOException - thrown if there's trouble
public void close()
throws java.io.IOException
java.io.IOException - thrown if there's troublepublic boolean isClosed()
true iff this instance is closed
public void setSoTimeout(int timeout)
throws java.net.SocketException
accept(). If it is passed as 0, then it indicates
that accept calls should block indefinitely.timeout - >= 0; the new timeout value, in millisecondsjava.net.SocketException - thrown if there's troublegetSoTimeout()
public int getSoTimeout()
throws java.io.IOException
java.io.IOException - thrown if there's troublesetSoTimeout(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||