Page 1 of 1

Async RCFProto Example

Posted: Fri Feb 17, 2017 5:45 pm
by sanjeevji
Hi,

We are trying to implemented RCFProto Server with Async clients. Currently help document has only client specific implementation. What changes are required on the server side to implement an async client calling. Also how can the server preserver callback handle of a client so that it can be called in another thread.

Thanks

-Sanjeev

Re: Async RCFProto Example

Posted: Mon Feb 20, 2017 3:25 pm
by sanjeevji
We are trying to implement similar to

http://www.deltavsoft.com/doc/rcf_user_ ... Calls.html

Re: Async RCFProto Example

Posted: Tue Feb 21, 2017 2:40 am
by jarl
Async client calling doesn't need any changes on the server side, as it's entirely a client-side technique.

For async server-side dispatching, you would preserve the RpcCallback object you receive from Protocol Buffers, store it in a list somewhere, and a worker thread would then pick it up and eventually call run() on it to deliver the response.

Re: Async RCFProto Example

Posted: Wed Feb 22, 2017 7:01 pm
by sanjeevji
We tried this,but it threw unhandled exception.