Results 1 to 3 of 3

Thread: How can client know the status that client and server disconnceted?

  1. #1
    skyriver is offline Registered User
    Join Date
    Jun 2005
    Posts
    9

    Question How can client know the status that client and server disconnceted?

    Hi!
    In a LAN , many PC are installed ICE server program and one PC are installed ICE client program.

    The PC runs many ICE Client services and connctes to many PC.

    When some PC that installed ICE server is disconnect , how can the pc know which pc disconnced ?

    Thanks a lot!

  2. #2
    benoit's Avatar
    benoit is online now ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    As Matthew mentioned in this thread, the best way to do this is to implement a session based client: your client creates a session with the server and refresh the session from a thread periodically.

    If the client call to refresh the server session fails, it's a good indication that the connection with the server might have been lost.

    Please checkout the session demo in the demo/Ice/session directory of the Ice 2.1.1 distribution. It demonstrates how to implement this session manager scheme.

    Hope this helps,

    Benoit.

  3. #3
    skyriver is offline Registered User
    Join Date
    Jun 2005
    Posts
    9
    Thank you!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Let che client know the status of the server
    By hisensewxz in forum Help Center
    Replies: 8
    Last Post: 09-22-2009, 08:51 PM
  2. Replies: 6
    Last Post: 08-15-2007, 02:08 AM
  3. about the status of client
    By simpley in forum Help Center
    Replies: 1
    Last Post: 04-27-2005, 04:04 AM
  4. Replies: 3
    Last Post: 11-26-2004, 09:35 AM
  5. may I detected the status of a special client
    By simpley in forum Help Center
    Replies: 3
    Last Post: 12-19-2003, 06:31 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
  •