Expose connected status.
[jFCPlib.git] / src / net / pterodactylus / fcp / highlevel / FcpClient.java
index 7f2d8bd..6d9e11a 100644 (file)
@@ -203,6 +203,16 @@ public class FcpClient {
                }
        }
 
+       /**
+        * Returns whether this client is currently connected.
+        *
+        * @return {@code true} if the client is currently connected, {@code false}
+        *         otherwise
+        */
+       public boolean isConnected() {
+               return connected;
+       }
+
        //
        // PEER MANAGEMENT
        //