X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Ffcp%2Fhighlevel%2FFcpClient.java;h=6d9e11ac1a022cbd5b6c7d2bbe474f24d7e595cd;hb=80d0435162508dc161adb7c0f8b7c2c644ef217c;hp=7f2d8bd2a544bb34634af03e3d0d0a1579d769a6;hpb=4d4d34bf8e0a92a2b74141c5cf037735aeb952fe;p=jFCPlib.git 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 //