Solved

Winsock select() vs WaitForMultipleObjects()

Posted on 1997-05-09
1
1,290 Views
Last Modified: 2013-12-23
I am porting an applicaiton from Unix to NT and don't want to change the select() loop design.  I also have some NT kernel owned handles that may become signaled while I am blocked on the select() call.

How do I mix these two paradigms?  Can I get signaled handles out of the Winsock SOCKET structures or can I build a SOCKET structure from a NT Handle to give to the select() call?
0
Comment
Question by:dlowe
1 Comment
 
LVL 5

Accepted Solution

by:
y96andha earned 100 total points
ID: 1560128
You could create a background thread to do the select and signal an event object when the select call returns. That way, the main thread would only use WaitForMultipleObjects.


0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Increase size of DHCP scope? 16 86
SQL Server Reporting Services Service Start Timeout 4 51
Password managers 1 33
Windows Server: configure snmp security to accept subnet 7 18
Have you ever set up your wireless router at home or in the office to find that you little pop-up bubble in the bottom right-hand corner of Windows read "IP Conflict - One of more computers on the network have been assigned the following IP address"…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question