From: David ‘Bombe’ Roden Date: Fri, 22 May 2009 05:20:24 +0000 (+0200) Subject: Expose connected status. X-Git-Tag: v0.1.1~50 X-Git-Url: https://git.pterodactylus.net/?p=jFCPlib.git;a=commitdiff_plain;h=80d0435162508dc161adb7c0f8b7c2c644ef217c Expose connected status. --- diff --git a/src/net/pterodactylus/fcp/highlevel/FcpClient.java b/src/net/pterodactylus/fcp/highlevel/FcpClient.java index 7f2d8bd..6d9e11a 100644 --- a/src/net/pterodactylus/fcp/highlevel/FcpClient.java +++ b/src/net/pterodactylus/fcp/highlevel/FcpClient.java @@ -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 //