Adds a method that anwwers if the connection with the server is active. SMACK-139

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2328 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2004-06-14 17:00:04 +00:00 committed by gdombiak
parent 9a7ad5d3cb
commit 0e938bfe1a
1 changed files with 9 additions and 0 deletions

View File

@ -783,6 +783,15 @@ public class EnhancedDebugger implements SmackDebugger {
}
return str;
}
/**
* Returns true if the debugger's connection with the server is up and running.
*
* @return true if the connection with the server is active.
*/
boolean isConnectionActive() {
return connection.isConnected();
}
/**
* Stops debugging the connection. Removes any listener on the connection.