Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 972725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:10:08+00:00 2026-05-16T03:10:08+00:00

I have read through the documentation for Winsock2 on MSDN, but I still need

  • 0

I have read through the documentation for Winsock2 on MSDN, but I still need clarification on a few things, if anyone can help.

I planned to make something like the the setup you get when you use WSAAsyncSelect(), but using a separate thread. Can I use WSAEventSelect() to link more than one socket to a single event object?

If I used a completion port instead, which events do I get through the completion port? The MSDN has a list in terms of file operations, but I had trouble relating them to which events (FD_READ, FD_WRITE, ect..) would be sent through the completion port. Is there a way to tell which event is completing? or do I have to take note of this and store it in a struct each time I send or recv something?

thanks for any *help anyone can give me on this =D

edit: better yet, would I better off just switching to C# to do this? It seems to be very popular and better suited to this specific task.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T03:10:09+00:00Added an answer on May 16, 2026 at 3:10 am

    No, you cannot link multiple sockets to a single WSAEVENT. You have to call WSACreateEvent() and WSAEventSelect() for each individual socket that you want to receive notifications for. You can use WSAWaitForMultipleEvents() to have a single thread wait for events from multiple sockets, though.

    As for using completion ports, I suggest you read MSDN’s articles on the matter, such as:

    Windows Sockets 2.0: Write Scalable Winsock Apps Using Completion Ports.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read through all PHP documentation on IMAP functions (www.php.net/imap), but didn't find
I have read many documentation on supporting multiple screen sizes but still confused. I
Ok, I'm programming in objective-C and using Xcode. I have read through the documentation
I have read through the solutions to similar problems, but they all seem to
I have read through all relevant posts on Prawn but found no mentioning (even
I have not had much time to read through all the documentation for the
I've read through all of the Spring 3 Web docs: http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/spring-web.html but have been
I have searched the web and read through the Boost documentation about shared_ptr .
I have read through the facebook developers documentation and it is not clear to
Ok so I have read through the Socket.IO docs and I am still a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.