Lines Matching refs:csock
155 client->csock);
358 if (vs->csock != -1 && vnc_has_feature(vs, VNC_FEATURE_RESIZE)) {
707 if (vs->need_update && vs->csock != -1) {
807 if (vs->csock != -1) {
883 if (vs->csock == -1)
885 qemu_set_fd_handler2(vs->csock, NULL, NULL, NULL, NULL);
886 closesocket(vs->csock);
887 vs->csock = -1;
987 ret = send(vs->csock, (const void *)data, datalen, 0);
1028 qemu_set_fd_handler2(vs->csock, NULL, vnc_client_read, NULL, vs);
1092 ret = recv(vs->csock, (void *)data, datalen, 0);
1137 if (vs->csock == -1)
1147 if (vs->csock == -1) {
1165 if (vs->csock != -1 && buffer_empty(&vs->output)) {
1166 qemu_set_fd_handler2(vs->csock, NULL, vnc_client_read, vnc_client_write, vs);
1206 if (vs->csock != -1 && vs->output.offset)
2058 static void vnc_connect(VncDisplay *vd, int csock)
2061 vs->csock = csock;
2063 VNC_DEBUG("New client on socket %d\n", csock);
2065 socket_set_nonblock(vs->csock);
2066 qemu_set_fd_handler2(vs->csock, NULL, vnc_client_read, NULL, vs);
2101 int csock = accept(vs->lsock, (struct sockaddr *)&addr, &addrlen);
2102 if (csock != -1) {
2103 vnc_connect(vs, csock);
2373 int csock = vs->lsock;
2375 vnc_connect(vs, csock);