Evictor question?
I want to create a servant, pass the proxy of the servant from server to client. How to do that? the code below is my implementation, but it does not work, i don't know why!
//
// ICE version 2.1.2
// server-side code
// server creates a servant, and pass this servant's proxy to client,
// but program blocks.
//
Ice::Identity fileIdentity;
fileIdentity.category = fileCategory;
fileIdentity.name = fileName;
FilePrx file;
LanE::FilePtr fileBase = new FileI();
file = FilePrx::uncheckedCast(c.adapter->add(fileBase,fileIdentity));
//
// ClientCallback::sendFile(File* file) is a Slice interface method.
// and program blocked here.
//
clientCallback->sendFile(file);
By the way, I want to create a servant, and push it into an evictor list, so that it can be automatically evicted, how to do it? i have been in a puzzle about these questions for days, badly want some help! Thank you!
thank you
Li Delong
Student, Beijing Jiaotong University.
Currently working on a experimental online game project.