|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface NetConnection
A NetConnection provides a convenient way to communicate with a remote process. All objects used must be serializable.
NetConnectionServer,
NetConnectionHandler,
ConnectionDispatcher| Method Summary | |
|---|---|
void |
close()
closes the NetConnection |
java.lang.Object |
getSignature()
returns the identification type object for this connection; this signature is the same on both sides of the connection. |
java.net.Socket |
getSocket()
returns the underlying Socket of this connection |
boolean |
isActive()
returns whether this NetConnection is currently active |
java.lang.Object |
readMessage()
reads an object from the connection (operation blocks until object is read) |
void |
sendMessage(java.lang.Object message)
sends an object over the connection |
| Method Detail |
|---|
java.lang.Object getSignature()
void sendMessage(java.lang.Object message)
throws java.io.IOException
message - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!
java.lang.Object readMessage()
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException - DOCUMENT ME!
java.lang.ClassNotFoundException - DOCUMENT ME!java.net.Socket getSocket()
boolean isActive()
void close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||