MCPcopy Index your code
hub / github.com/processing/processing / disconnect

Method disconnect

java/libraries/net/src/processing/net/Server.java:125–133  ·  view source on GitHub ↗

( begin auto-generated from Server_disconnect.xml ) Disconnect a particular client. ( end auto-generated ) @brief Disconnect a particular client. @webref server:server @param client the client to disconnect

(Client client)

Source from the content-addressed store, hash-verified

123 * @param client the client to disconnect
124 */
125 public void disconnect(Client client) {
126 client.stop();
127 synchronized (clientsLock) {
128 int index = clientIndex(client);
129 if (index != -1) {
130 removeIndex(index);
131 }
132 }
133 }
134
135
136 protected void removeIndex(int index) {

Callers

nothing calls this directly

Calls 3

clientIndexMethod · 0.95
removeIndexMethod · 0.95
stopMethod · 0.45

Tested by

no test coverage detected