SnapEventListener is an interface and the full qualified name is com.nokia.sm.net.SnapEventListener.
If you create your own class that implements this interface, you can receive notifications from the server. The notifications come in 2 different flavors, events and errors.
Here is an example of a class that implements SnapEventListener:
package com.acme.snap;
public class DebugListener implements SnapEventListener {
public void processEvents(Vector list) {
// TODO Add code to handle events.
}
public void processServerError(int code, String message, int severity) {
// TODO Add code to handle server error.
}
}
From your game code, instantiate your class and add it as listener to the ServerComm instance you have:
ServerComm comm;
DebugListener listener;
...
listener = new DebugListener();
comm.addSnapEventListener(listener);
...
Check out the SNAP Mobile Game Developers Guide chapter 3.17 "Polling for asyncronous events". This will also help you understanding the idea of the snapEventListener aka polling.