MCPcopy Create free account
hub / github.com/benfry/processing4 / dispose

Method dispose

java/libraries/net/src/processing/net/Client.java:186–214  ·  view source on GitHub ↗

Disconnect from the server: internal use only. This should only be called by the internal functions in PApplet, use stop() instead from within your own sketches.

()

Source from the content-addressed store, hash-verified

184 * use stop() instead from within your own sketches.
185 */
186 public void dispose() {
187 thread = null;
188 try {
189 if (input != null) {
190 input.close();
191 input = null;
192 }
193 } catch (Exception e) {
194 e.printStackTrace();
195 }
196
197 try {
198 if (output != null) {
199 output.close();
200 output = null;
201 }
202 } catch (Exception e) {
203 e.printStackTrace();
204 }
205
206 try {
207 if (socket != null) {
208 socket.close();
209 socket = null;
210 }
211 } catch (Exception e) {
212 e.printStackTrace();
213 }
214 }
215
216
217 @Override

Callers 2

ClientMethod · 0.95
stopMethod · 0.95

Calls 2

closeMethod · 0.45
printStackTraceMethod · 0.45

Tested by

no test coverage detected