projects
/
jFCPlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Expose connected status.
[jFCPlib.git]
/
src
/
net
/
pterodactylus
/
fcp
/
highlevel
/
FcpClient.java
diff --git
a/src/net/pterodactylus/fcp/highlevel/FcpClient.java
b/src/net/pterodactylus/fcp/highlevel/FcpClient.java
index
7f2d8bd
..
6d9e11a
100644
(file)
--- 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
//