Archived

This forum has been archived. Please start a new discussion on GitHub.

Creating a Glacier2 Session in an asynchronous way

Hello,
For testing reason, my program needs to create and destroy a set of Glacier2 Sessions periodically.
I'm using the Ice Timer to schedule the connection and disconnection operations.
However, because I create the Glacier2 session in a synchronous way, my program doesn't guarantee the periodicity.

Does exist a way to create a Glacier2 Session asynchronously?

Thanks in advance,
Diego

Comments

  • matthew
    matthew NL, Canada
    Sure, that is no issue. Generally its simplest to use a thread to establish a Glacier2 session asynchronously since there are a number of steps involved. However, if you don't want to do that then you can certainly use a chain of AMI calls to do so. I suggest looking at the chat demo & articles for examples of how to do this. http://www.zeroc.com/chat/index.html