eshirshov ✭
// set CloseCallback and ACM
connection = proxy->ice_getConnection();
connection->setACM(..);
connection->setCloseCallback(...)
...
// close connection - any moment !!
...
proxy->Func(); // auto reconnect, and ACM and CloseCallback set default !!!