Commit d4cc7d0e authored by Antoine Millet's avatar Antoine Millet
Browse files

Removed get_handler and set_handler from the RpcConnection

These methods must be available only through the Rpc protocol. To access
to the default RPC (aka rpc0), use the "connection.rpc" property:

    conn.rpc.set_handler(MyHandler())
parent 40e9e61a
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -433,22 +433,6 @@ class RpcConnection(object):
            #self.logger.warn('Error while socket close: %s', err)
            pass

    def get_handler(self):
        '''
        Return the handler binded to the :class:`RpcConnection`.

        :return: binded handler
        '''
        return self._handler

    def set_handler(self, handler):
        '''
        Define a new handler for this connection.

        :param handler: the new handler to define.
        '''
        self._handler = handler

    def get_fd(self):
        '''
        Get the file descriptor of the socket managed by this connection.