Lines Matching refs:connected
72 int connected; member
326 while (s->connected) { in ctl_close()
327 s->connected--; in ctl_close()
328 tapdisk_server_unregister_event(s->connections[s->connected].id); in ctl_close()
329 close(s->connections[s->connected].fd); in ctl_close()
330 s->connections[s->connected].fd = -1; in ctl_close()
331 s->connections[s->connected].id = 0; in ctl_close()
362 for (i = 0; i < s->connected; i++) { in ctl_close_sock()
368 s->connected--; in ctl_close_sock()
388 if (s->connected) { in ctl_accept()
402 s->connections[s->connected].fd = fd; in ctl_accept()
403 s->connections[s->connected].id = cid; in ctl_accept()
404 s->connected++; in ctl_accept()
548 for (i = 0; i < s->connected; i++) in ctl_find_connection()