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

Method clientIndex

java/libraries/net/src/processing/net/Server.java:174–183  ·  view source on GitHub ↗
(Client client)

Source from the content-addressed store, hash-verified

172
173
174 protected int clientIndex(Client client) {
175 synchronized (clientsLock) {
176 for (int i = 0; i < clientCount; i++) {
177 if (clients[i] == client) {
178 return i;
179 }
180 }
181 return -1;
182 }
183 }
184
185
186 /**

Callers 1

disconnectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected