Solved

Winsock select() vs WaitForMultipleObjects()

Posted on 1997-05-09
1
1,271 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Enterprise networks where VoIP phones have been deployed frequently use port configurations that allow both a computer and an IP phone to be plugged into the same switch port but use different VLANs. On Cisco equipment I'm referring to the "native V…
This is the first one of a series of articles I’ll be writing to address technical issues that are always referred to as network problems. The network boundaries have changed, therefore having an understanding of how each piece in the network  puzzl…
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now