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