Interface ConnectionListener

All Known Implementing Classes:
Sarj

public interface ConnectionListener

Defines a listener interface for a events generated by a connection with a Soldat server


Method Summary
 void onConnected()
          Called when a connection is successfully established with a server, as a result of calling the connect method of a Connection object.
 void onDisconnected()
          Called when a connection to a server is lost, either gracefully or due to error
 void onError(java.lang.String message)
          Called when a connection error occurrs
 

Method Detail

onConnected

void onConnected()
Called when a connection is successfully established with a server, as a result of calling the connect method of a Connection object.


onDisconnected

void onDisconnected()
Called when a connection to a server is lost, either gracefully or due to error


onError

void onError(java.lang.String message)
Called when a connection error occurrs

Parameters:
message - the error message