|
datum API Documentation | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Receives events from both server and client Connections. Can be used to have the application respond immediately to incoming data, or connection status changes. One Receiver object can be used to received events from multiple connections, as is the case for Servers. The Connection argument for each event returns a reference to which Connection the event is in relation to.
Connection| Method Summary | |
void |
connected(Connection connection)
Called when a Connection has successfully connected and the definitions table has been already transfered. |
void |
disconnected(Connection connection)
Called after a Connection has been dropped. |
void |
error(Connection connection,
String errorMessage)
Called when an error occurs for a Connection. |
void |
receivedData(Connection connection,
Hashtable data)
Called every time a complete message is received by a Connection. |
| Method Detail |
public void error(Connection connection,
String errorMessage)
connection - The connection which this error is coming from.errorMessage - A description of the error that occured.disconnected(Connection)public void connected(Connection connection)
connection - The connection which has just been established.Connection.send(java.lang.Object[])
public void receivedData(Connection connection,
Hashtable data)
connection - The connection which received a message.data - The Hashtable which contains field name-value pairs from the message.Connection.getLibrary()public void disconnected(Connection connection)
connection - The connection which has just been dropped.
|
Up to datum |
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||