From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28463 invoked by alias); 7 Aug 2019 21:09:08 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 28455 invoked by uid 89); 7 Aug 2019 21:09:08 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=H*c:alternative X-HELO: mail-ot1-f41.google.com Received: from mail-ot1-f41.google.com (HELO mail-ot1-f41.google.com) (209.85.210.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 07 Aug 2019 21:09:06 +0000 Received: by mail-ot1-f41.google.com with SMTP id n5so110087985otk.1 for ; Wed, 07 Aug 2019 14:09:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=aOoAub88n2kVi3zADSPmJtWHjCfxtusIxdpStYRf8qI=; b=pU4Bn2WcF7S7oFsI599Q9affx/Ni3jdYINWTzIMeBl8U9yoLxgqbKs5z5R7iIr7MCQ k6Lg6vGPjK0mI1nVjx4PjmJzcFiCSf/5YnDxVQiPy6zNIOfGH9IBfP3W5B1KP/h/qlBc aHyHZ99mjmgw/98ukakO1+xEckFJAAmeCy4cJs6cMT4PVx/mTK/H4KpkoBLy1MDkVQdw LJQpwEZzWv+LZJ00RyLEtNTBa7Ec8/fZAQTzS/XQkXAdtPCuNj8eihmzu6an1S8m3GqJ 3n7lQwaDTBqo5JrIyAE7E75DxumwHhrr8L7CeTrZ5T3h37gyd78sSNRvGlUNy9MkCsKu crOA== MIME-Version: 1.0 Received: by 2002:a92:9908:0:0:0:0:0 with HTTP; Wed, 7 Aug 2019 14:09:04 -0700 (PDT) From: Biswapriyo Nath Date: Wed, 07 Aug 2019 21:09:00 -0000 Message-ID: Subject: Use poll with Windows socket To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00114.txt.bz2 I've tried to use poll() with a Windows socket (from WSASocket) and a cygwin side file descriptor (fd). But it is only signaled for fd only. At first, I have seen that fhandler_socket_wsock::set_socket_handle() casts SOCKET to int. So, is it possible to use poll() with the SOCKET type? Or Is there any magic to convert Windows socket to cygwin fd and vice-versa? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple