| 542 | } |
| 543 | |
| 544 | int countclients(int type, bool exclude = false) |
| 545 | { |
| 546 | int num = 0; |
| 547 | loopv(clients) if((clients[i]->type!=type)==exclude) num++; |
| 548 | return num; |
| 549 | } |
| 550 | |
| 551 | int numclients() { return countclients(ST_EMPTY, true); } |
| 552 | int numlocalclients() { return countclients(ST_LOCAL); } |
no test coverage detected