Results 1 to 2 of 2

Thread: Number of connection in current thread

  1. #1
    Dmitriy is offline Registered User
    Join Date
    Jun 2004
    Location
    Russia
    Posts
    12

    Number of connection in current thread

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

    For example, I use
    properties->setProperty("Ice.ThreadPool.Server.Size","10");
    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();

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Maximum number of connections exceeded
    By MikhailT BC in forum Help Center
    Replies: 0
    Last Post: 02-03-2011, 09:14 AM
  2. Wrong port number in example configuration
    By andreynech in forum Bug Reports
    Replies: 1
    Last Post: 02-28-2010, 01:33 AM
  3. Replies: 8
    Last Post: 04-01-2009, 11:56 PM
  4. Replies: 16
    Last Post: 05-02-2006, 04:20 PM
  5. Replies: 1
    Last Post: 06-06-2005, 10:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •