We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 74379a1 + 1dcae82 commit ce540beCopy full SHA for ce540be
2 files changed
java/libraries/net/src/processing/net/Server.java
@@ -177,6 +177,13 @@ protected int clientIndex(Client client) {
177
return -1;
178
}
179
180
+ /**
181
+ * Return true if this server is still active and hasn't run
182
+ * into any trouble.
183
+ */
184
+ public boolean active() {
185
+ return (thread != null);
186
+ }
187
188
static public String ip() {
189
try {
java/libraries/serial/src/processing/serial/Serial.java
@@ -135,6 +135,15 @@ public void dispose() {
135
136
137
138
139
+ * Return true if this port is still active and hasn't run
140
141
142
143
+ return (port.isOpened());
144
145
+
146
147
public void pre() {
148
if (serialAvailableMethod != null && invokeSerialAvailable) {
149
invokeSerialAvailable = false;
0 commit comments