Sign in to follow this  
ramdy

Multiple clients and FD_CLOSE what socket to close?

Recommended Posts

ramdy    141
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
Anon Mike    1098
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this