Async RCFProto Example

RCFProto support and general discussion.
Post Reply
sanjeevji
Posts: 8
Joined: Mon Feb 13, 2017 7:33 pm

Async RCFProto Example

Post 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

sanjeevji
Posts: 8
Joined: Mon Feb 13, 2017 7:33 pm

Re: Async RCFProto Example

Post by sanjeevji »

We are trying to implement similar to

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

jarl
Posts: 238
Joined: Mon Oct 03, 2011 4:53 am
Contact:

Re: Async RCFProto Example

Post 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.
Kind Regards

Jarl Lindrud
Delta V Software
http://www.deltavsoft.com

sanjeevji
Posts: 8
Joined: Mon Feb 13, 2017 7:33 pm

Re: Async RCFProto Example

Post by sanjeevji »

We tried this,but it threw unhandled exception.

Post Reply