Lines Matching refs:sockfd
44 static int get_exported_devices(char *host, int sockfd)
56 rc = usbip_net_send_op_common(sockfd, OP_REQ_DEVLIST, 0);
62 rc = usbip_net_recv_op_common(sockfd, &code, &status);
70 rc = usbip_net_recv(sockfd, &reply, sizeof(reply));
89 rc = usbip_net_recv(sockfd, &udev, sizeof(udev));
106 rc = usbip_net_recv(sockfd, &uintf, sizeof(uintf));
131 int sockfd;
133 sockfd = usbip_net_tcp_connect(host, usbip_port_string);
134 if (sockfd < 0) {
136 usbip_port_string, gai_strerror(sockfd));
141 rc = get_exported_devices(host, sockfd);
147 close(sockfd);