|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Connection2Client
Defines the methods the server can use to send messages to the client.
| Method Summary | |
|---|---|
void |
disconnect()
Disconnect from the client. |
void |
flush()
Flush the underlying stream. |
boolean |
isOpen()
Returns true if this connection is open. |
FreerailsSerializable[] |
readFromClient()
Returns an array containing all the objects read from the client since the last time this method or waitForObjectFromClient() was called, if no objects have been received, it returns an empty array rather than blocking. |
FreerailsSerializable |
waitForObjectFromClient()
Returns the next object read from the client, blocking if non is available. |
void |
writeToClient(FreerailsSerializable object)
Sends the specified object to the client. |
| Method Detail |
|---|
boolean isOpen()
FreerailsSerializable[] readFromClient()
throws java.io.IOException
java.io.IOException
FreerailsSerializable waitForObjectFromClient()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
void writeToClient(FreerailsSerializable object)
throws java.io.IOException
java.io.IOException
void flush()
throws java.io.IOException
java.io.IOException
void disconnect()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||