Home Help Center

Number of connection in current thread

DmitriyDmitriy Member
How to determinate number of connection in current thread on server?

For example, I use
14 clients connect to this server
In every thread I must call ::CoInitialize(NULL);
When client disconnect, I whant to know - is another client connect in this thread?
If no - I call ::CoUninitialize();


  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    I'm afraid I don't understand the question. Clients are not connected to specific threads. If a server receives a request from a client, the server will use any thread from the thread pool that is not already in use for another request.
Sign In or Register to comment.