Searched refs:listenfd (Results 1 – 1 of 1) sorted by relevance
/Zephyr-latest/drivers/usb/device/ |
D | usb_dc_native_posix_adapt.c | 264 int listenfd, connfd; in usbip_start() local 280 listenfd = socket(PF_INET, SOCK_STREAM | SOCK_NONBLOCK, 0); in usbip_start() 281 if (listenfd < 0) { in usbip_start() 286 if (setsockopt(listenfd, SOL_SOCKET, SO_REUSEADDR, in usbip_start() 296 if (bind(listenfd, (struct sockaddr *)&srv, sizeof(srv)) < 0) { in usbip_start() 301 if (listen(listenfd, SOMAXCONN) < 0) { in usbip_start() 310 connfd = accept4(listenfd, (struct sockaddr *)&client_addr, in usbip_start()
|