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