Lines Matching refs:sockfd
43 static int get_exported_devices(char *host, int sockfd) in get_exported_devices() argument
55 rc = usbip_net_send_op_common(sockfd, OP_REQ_DEVLIST, 0); in get_exported_devices()
61 rc = usbip_net_recv_op_common(sockfd, &code, &status); in get_exported_devices()
69 rc = usbip_net_recv(sockfd, &reply, sizeof(reply)); in get_exported_devices()
88 rc = usbip_net_recv(sockfd, &udev, sizeof(udev)); in get_exported_devices()
105 rc = usbip_net_recv(sockfd, &uintf, sizeof(uintf)); in get_exported_devices()
130 int sockfd; in list_exported_devices() local
132 sockfd = usbip_net_tcp_connect(host, usbip_port_string); in list_exported_devices()
133 if (sockfd < 0) { in list_exported_devices()
135 usbip_port_string, gai_strerror(sockfd)); in list_exported_devices()
140 rc = get_exported_devices(host, sockfd); in list_exported_devices()
146 close(sockfd); in list_exported_devices()