Lines Matching refs:sockfd
81 static int import_device(int sockfd, struct usbip_usb_device *udev) in import_device() argument
102 rc = usbip_vhci_attach_device(port, sockfd, udev->busnum, in import_device()
120 static int query_import_device(int sockfd, char *busid) in query_import_device() argument
132 rc = usbip_net_send_op_common(sockfd, OP_REQ_IMPORT, 0); in query_import_device()
142 rc = usbip_net_send(sockfd, (void *) &request, sizeof(request)); in query_import_device()
149 rc = usbip_net_recv_op_common(sockfd, &code, &status); in query_import_device()
156 rc = usbip_net_recv(sockfd, (void *) &reply, sizeof(reply)); in query_import_device()
171 return import_device(sockfd, &reply.udev); in query_import_device()
176 int sockfd; in attach_device() local
180 sockfd = usbip_net_tcp_connect(host, usbip_port_string); in attach_device()
181 if (sockfd < 0) { in attach_device()
186 rhport = query_import_device(sockfd, busid); in attach_device()
190 close(sockfd); in attach_device()