Solved

Winsock select() vs WaitForMultipleObjects()

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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

Suggested Solutions

A brief overview to explain gateways, default gateways and static routes OR NO - you CANNOT have two default gateways on the same server, PC or other Windows-based network device. In simple terms a gateway is formed when a computer such as a serv…
Nslookup is a command line driven utility supplied as part of most Windows operating systems that can reveal information related to domain names and the Internet Protocol (IP) addresses associated with them. In simple terms, it is a tool that can …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

679 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