Lines Matching defs:client_fd
1215 int listen_fd, client_fd, i;
1226 client_fd = accept(listen_fd, (struct sockaddr *)&sa_client,
1229 } while (client_fd < 0 && errno == EINTR);
1232 if (client_fd < 0) {
1238 vsock_wait_remote_close(client_fd);
1246 int i, client_fd;
1257 client_fd = vsock_bind_connect(opts->peer_cid, opts->peer_port,
1260 close(client_fd);
1268 int client_fd;
1270 client_fd = vsock_accept(VMADDR_CID_ANY, opts->peer_port, NULL, type);
1271 if (client_fd < 0) {
1276 recv_buf(client_fd, buf, sizeof(buf), 0, sizeof(buf));
1279 close(client_fd);
1314 int client_fd;
1316 client_fd = vsock_accept(VMADDR_CID_ANY, opts->peer_port, NULL, type);
1317 if (client_fd < 0) {
1325 send_buf(client_fd, buf, sizeof(buf), 0, sizeof(buf));
1328 close(client_fd);