Hi All,

I am creating a rpyc server that provides services of "read" and "write" nature.
My need is - if multiple clients are connected, "write" must be
possible by only one client while all other clients can have "read"
access.

Any suggestions on how to address this in a clean way?

Seems like this requires:
    - when a new client connects, being able to store client
information in a manner accessible to sub-class of rpyc.Service
    - providing a mechanism to request write access
    - noting which client has write access
    - on a per request basis, checking client information against the
one client that has write access

In rpyc, there is a clear separation between Server() which manages
clients and connections and rpyc.Service() and the service layer is
implemented.
In my case, my rpyc.Service() based sub-class needs the client
information to be tracked.

thanks & best regards
Shivakumar

Reply via email to