| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -177,6 +177,13 @@ protected int clientIndex(Client client) { | |||
| 177 | 177 | return -1; | |
| 178 | 178 | } | |
| 179 | 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 | + } | ||
| 180 | 187 | ||
| 181 | 188 | static public String ip() { | |
| 182 | 189 | try { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -135,6 +135,15 @@ public void dispose() { | |||
| 135 | 135 | } | |
| 136 | 136 | ||
| 137 | 137 | ||
| 138 | + /** | ||
| 139 | + * Return true if this port is still active and hasn't run | ||
| 140 | + * into any trouble. | ||
| 141 | + */ | ||
| 142 | + public boolean active() { | ||
| 143 | + return (port.isOpened()); | ||
| 144 | + } | ||
| 145 | + | ||
| 146 | + | ||
| 138 | 147 | public void pre() { | |
| 139 | 148 | if (serialAvailableMethod != null && invokeSerialAvailable) { | |
| 140 | 149 | invokeSerialAvailable = false; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments