Searched refs:sock_fd (Results 1 – 3 of 3) sorted by relevance
/device/generic/car/emulator/usbpt/usbip-service/ |
D | UsbIpUtils.cpp | 59 if ((info->sock_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == 0) { in get_usbip_connection() 65 if (setsockopt(info->sock_fd, SOL_SOCKET, SO_KEEPALIVE, &flags, in get_usbip_connection() 68 close(info->sock_fd); in get_usbip_connection() 71 if (setsockopt(info->sock_fd, SOL_TCP, TCP_NODELAY, &flags, in get_usbip_connection() 74 close(info->sock_fd); in get_usbip_connection() 81 close(info->sock_fd); in get_usbip_connection() 90 close(info->sock_fd); in get_usbip_connection() 94 if (connect(info->sock_fd, (struct sockaddr *)&address, sizeof(address)) == in get_usbip_connection() 97 close(info->sock_fd); in get_usbip_connection() 108 if (send(info->sock_fd, &op_req, sizeof(op_req), 0) == -1) { in get_usbip_connection() [all …]
|
D | UsbIpService.cpp | 31 close(info.sock_fd); in main() 41 close(info.sock_fd); in main() 44 if (dprintf(fd, "%d %d %d %d", port_num, info.sock_fd, info.dev_id, in main() 47 close(info.sock_fd); in main() 52 close(info.sock_fd); in main()
|
D | UsbIpUtils.h | 12 int sock_fd; member
|