Lines Matching defs:sockfd
90 lws_sockfd_type sockfd;
202 sockfd = lws_fi(&a->vhost->fic, "listenskt") ?
206 if (sockfd == LWS_SOCK_INVALID) {
222 if (setsockopt(sockfd, SOL_SOCKET, SO_EXCLUSIVEADDRUSE,
225 compatible_close(sockfd);
234 if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR,
237 compatible_close(sockfd);
249 setsockopt(sockfd, IPPROTO_IPV6, IPV6_V6ONLY,
251 compatible_close(sockfd);
265 if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEPORT,
267 compatible_close(sockfd);
272 lws_plat_set_socket_options(a->vhost, sockfd, 0);
274 is = lws_socket_bind(a->vhost, NULL, sockfd,
280 compatible_close(sockfd);
292 compatible_close(sockfd);
322 wsi->desc.sockfd = sockfd;
345 if (setsockopt(wsi->desc.sockfd, IPPROTO_TCP,
358 if (setsockopt(wsi->desc.sockfd, SOL_TCP, TCP_FASTOPEN,
365 n = listen(wsi->desc.sockfd, LWS_SOMAXCONN);
399 compatible_close(sockfd);