|
Holger's Java API |
|||||||||
| 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 sent must implement Serializable.
NetConnectionServer,
NetConnectionHandler,
ConnectionDispatcher| Method Summary | |
|---|---|
Handshake |
getHandshake()
returns the identification type object for this connection; this signature is the same on both sides of the connection. |
Socket |
getSocket()
returns the underlying Socket of this connection |
boolean |
isActive()
returns whether this NetConnection is currently active |
Object |
readMessage()
reads an object from the connection (operation blocks until object is read) |
void |
sendMessage(Object message)
sends an object over the connection |
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Method Detail |
|---|
Handshake getHandshake()
void sendMessage(Object message)
throws IOException
IOException
Object readMessage()
throws IOException,
ClassNotFoundException
IOException
ClassNotFoundExceptionSocket getSocket()
boolean isActive()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||