Commit 7dbf22ba authored by Antoine Millet's avatar Antoine Millet
Browse files

A connected client have now a proxy attribute (Sjrpc ConnectionProxy to the RpcConnection)

parent 4f806e8e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -8,6 +8,8 @@ Local client representation classes.
from threading import Lock
from datetime import datetime

from sjrpc.utils import ConnectionProxy

class CCClient(object):
    '''
    Represent a single client connected to the server.
@@ -33,6 +35,9 @@ class CCClient(object):
        # The date of the last action:
        self._last_action = datetime.now()

        # The connection proxy:
        self.proxy = ConnectionProxy(connection)

        # Jobs lock for this client:
        self.lock = Lock()