I have a RPyC Server that creates an instance of class which is connected to a cdll as wrapper; if I instantiate this object in the RpycService Class I wrote the server connection aborts as soon as I create the instance of the Cwrapper
class RpycService(rpyc.Service):
def __init__(self):
self._root_cart_wrapper = None
def exposed_simulate(self, cdll_path=""):
#global _root_cart_wrapper
if not cdll_path:
cdll_path=cmdline_args.cdll_path
self._root_cart_wrapper = sims.BAF_SIL_Sync(cdll_path)
def exposed_process_clock_tick(self, *args, **kwargs):
#self._root_cart_wrapper.process_clock_tick(*args, **kwargs)
print ("Rpyc's process_clock_tick")