|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is the listener interface for ITransport.
This interface must be implemented by every application class that wants to
be informed about events related to an ITransport protocol connection.
There are two functions, one of which informs about receive data,
the other about errors that may occur. It is important to note that both functions will
be called in the context of a background thread which is definitely not the Java event
dispatcher thread. Thus, the usual considerations about calling GUI functions from different threads
apply, e.g. you may only call functions marked as thread-safe in the documentation.
All other GUI-related tasks should use the functions of javax.swing.SwingUtilites instead.
addListener,
removeListener| Method Summary | |
void |
dataReceived(java.lang.Object obj,
byte[] data,
int length)
New receive data available. |
void |
errorOccurred(java.lang.Object obj,
ErrorInfo info)
The connection ist lost. |
| Method Detail |
public void dataReceived(java.lang.Object obj,
byte[] data,
int length)
obj - denotes the object that triggered this callback.data - contains the receive data.length - number of bytes received.
public void errorOccurred(java.lang.Object obj,
ErrorInfo info)
obj - denotes the object that triggered this callback.info - further information about the nature of the problem may be retrieved with the member functions
of the ErrorInfo object.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||