parameters: (self, addr, host)
docstring: Initializes the protocol.
  
          Parameters:
              addr        The address of the server (reported by Twisted).
              factory     The factory which produced this protocol.
docstring_summary: Initializes the protocol.
docstring_tokens: Initializes the protocol .
function: def __init__(self, addr, host):
          """
          Initializes the protocol.
  
          Parameters:
              addr        The address of the server (reported by Twisted).
              factory     The factory which produced this protocol.
          """
          super(VelesProtocol, self).__init__(logger=host.logger)
          self.addr = addr
          self.host = host
          self._last_update = None
          self.state = host.state
          self._current_deferred = None
          self._power_upload_time = 0
          self._power_upload_threshold = 60
          self.rand = get_rg()
function_tokens: def __init__ ( self , addr , host ) : super ( VelesProtocol , self ) . __init__ ( logger = host . logger ) self . addr = addr self . host = host self . _last_update = None self . state = host . state self . _current_deferred = None self . _power_upload_time = 0 self . _power_upload_threshold = 60 self . rand = get_rg ( )