Lines Matching refs:n_clients
74 int n_clients; member
95 for (i = 0; i < ctx->n_clients; i++) { in client_remove_inactive()
101 ctx->n_clients--; in client_remove_inactive()
103 (ctx->n_clients - i) * sizeof(*ctx->clients)); in client_remove_inactive()
105 ctx->n_clients * sizeof(*ctx->clients)); in client_remove_inactive()
137 for (i = 0; i < ctx->n_clients; i++) { in rx_message()
333 ctx->n_clients++; in socket_process()
335 realloc(ctx->clients, ctx->n_clients * sizeof(struct client)); in socket_process()
337 client = &ctx->clients[ctx->n_clients - 1]; in socket_process()
493 (ctx->n_clients + FD_NR) * in run_daemon()
496 for (i = 0; i < ctx->n_clients; i++) { in run_daemon()
507 rc = poll(ctx->pollfds, ctx->n_clients + FD_NR, -1); in run_daemon()
543 for (i = 0; i < ctx->n_clients; i++) { in run_daemon()
595 ctx->n_clients = 0; in main()