RPyC Server with ctypes / cdll interface aborts/quits

6 views
Skip to first unread message

Sathisha Movvar

unread,
Mar 28, 2023, 1:22:22 PM3/28/23
to rpyc
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

Any clue why this happens?

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")
Reply all
Reply to author
Forward
0 new messages