( begin auto-generated from Server_write.xml ) Writes a value to all the connected clients. It sends bytes out from the Server object. ( end auto-generated ) @webref server @brief Writes data to all connected clients @param data data to write
(int data)
| 341 | * @param data data to write |
| 342 | */ |
| 343 | public void write(int data) { // will also cover char |
| 344 | synchronized (clientsLock) { |
| 345 | int index = 0; |
| 346 | while (index < clientCount) { |
| 347 | if (clients[index].active()) { |
| 348 | clients[index].write(data); |
| 349 | index++; |
| 350 | } else { |
| 351 | removeIndex(index); |
| 352 | } |
| 353 | } |
| 354 | } |
| 355 | } |
| 356 | |
| 357 | |
| 358 | public void write(byte data[]) { |
nothing calls this directly
no test coverage detected