delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/08/07/17:09:55

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; q=dns; s=default; b=qepuC8aZxutmQd2HBK7gNAPZjr1N9
CZHqK7KdYAmnftYUUhS4HIaGzc4Q2rVLjlpcw2FMHIodSLiFZFnVshqQIrzA4RPa
s48KVQ1ry0zZOv4p+syd5OYbjb+5cJ7u9M2xQrLq7JwgGLfntA6r24SwxHsGF9Wj
uaYXsm5SgY1nbM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; s=default; bh=qEolJHV1BmuXsTIgF4yILArxCSM=; b=U1t
UohyBY1ZasThBFl6jQZhoIveFO8VT7SSTDnluFdXfogvuHTHWKCUZoepbBo+ISg3
1V9o7q9MsfF/eFtkNGfdIGo2CWDSN+RqrY3f2PkiDJ3u09z8L/9tu0aTZZQo4iVe
UUVupn5QAqpBw4E2U2WmFw+NPensjw6MG9sxvtAc=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
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
From: Biswapriyo Nath <nathbappai AT gmail DOT com>
Date: Thu, 8 Aug 2019 02:39:04 +0530
Message-ID: <CALK-3mLVX3+5Cm2FNU0O4zuQ0oHwZYCKKdgoDkOde1LLw0vRaA@mail.gmail.com>
Subject: Use poll with Windows socket
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019