What's the best way to listen to 2 or more tserver connections for events using the t-lib sdk?
When only one TServer is in play, I spawn TScanServerEx in a thread. But because t-lib is not thread safe spawning TScanServerEx in a separate thread for each TServer connection is neither supported and does result in crashing.
The Genesys knowledge base recommends using conn_main_loop instead of TScanServerEx.
I've tried conn_main_loop with some success. But I have some stability issues that preclude certifying for production use.
Thanks for any help.
|