• Advertisement
Sign in to follow this  

Multiple clients and FD_CLOSE what socket to close?

This topic is 2856 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, Im creating a server (async tcp) which handles multiple clients. I use an array to store each client socket. When I receive an FD_CLOSE, how do I know what is the socket I need to close? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
MSDN says
When one of the nominated network events occurs on the specified socket s, the application window hWnd receives message wMsg. The wParam parameter identifies the socket on which a network event has occurred. The low word of lParam specifies the network event that has occurred. The high word of lParam contains any error code

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement