Archived
set callback for ice connection
I want to reclaim some resource when ice connection closed, so i try to use setCallback() function of ice connection. first I need define a class as below:
class MyConnectionCallback: public Ice::ConnectionCallback
{
......
};
then I should call setCallback() function of ice connection to set my own callback object as follows:
curr.con->setCallback(new MyConnectionCallback);
my problem is I can't find which header file I should include for Ice::ConnectionCallback. can somebody help me?
thanks a lot in advance!
Comments
-
Hi,
Which Ice version do you use? Including
<Ice/Ice.h>
should be sufficient.Cheers,
Benoit.0 -
Hi Benoit,
Thanks for your reply!
I'm sure that I have included <Ice/Ice.h>. But the Ice version I used is 3.5.1. After updating it to 3.6.2, the problem is gone.
Thanks again for your help!0