Menu

#8 Connection Lost always.

open
nobody
None
5
2004-03-30
2004-03-30
PopolonY2k
No

Hi,

I´m developing the PlanetaMessenger.org's plugin using
this great library and I´m getting problems to keep the
connection with AIM server alive.
In my JaimEventListener based class (implemented
class), on receiveEvent class, I have the following code:

public void receiveEvent( JaimEvent event ) {

TocResponse tr = event.getTocResponse();
String responseType = tr.getResponseType();

..... (all response processing) .....

if( responseType.equalsIgnoreCase(
ConnectionLostTocResponse.RESPONSE_TYPE ) ) {
System.err.println( "connectionLost()" );
fireOnLogout(); // Call Plugin specific method
}

And, always the "connection lost" is reached (sometimes
I succeed connection with server, and the most curious
is when I ignore the connection lost notification (not
performing my plugin specific logout function -
fireLogout()), the library works fine, but the library
always continue sending connection lost message to my
application.
I believe that connection lost is the way to inform the
application that something is wrong with AIM Server
connection. I'm right ???
If I'm doing something wrong, please let me know.

Thanks a lot.

Leidson Campos Ferreira
PlanetaMessenger.org

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.