parameters: (self, addr, host)
docstring: Initializes the protocol.
  
          Parameters:
              addr    The address of the client (reported by Twisted).
              nodes   The clients which are known (dictionary, the key is ID).
              host An instance of producing VelesProtocolFactory.
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 client (reported by Twisted).
              nodes   The clients which are known (dictionary, the key is ID).
              host An instance of producing VelesProtocolFactory.
          """
          super(VelesProtocol, self).__init__(logger=host.logger)
          self.addr = addr
          self.host = host
          self.nodes = self.host.nodes
          self._id = None
          self._not_a_slave = False
          self._balance = 0
          self._endpoint = None
          self.state = fysom.Fysom(VelesProtocol.FSM_DESCRIPTION, self)
          self._responders = {"handshake": self._handshake,
                              "change_power": self._changePower}
          self._jobs_processed = []
          self._last_job_submit_time = 0
          self._dropper_on_timeout = None
          self._job_timeout = host.job_timeout
          self._drop_on_timeout = (self._job_timeout > 0)
function_tokens: def __init__ ( self , addr , host ) : super ( VelesProtocol , self ) . __init__ ( logger = host . logger ) self . addr = addr self . host = host self . nodes = self . host . nodes self . _id = None self . _not_a_slave = False self . _balance = 0 self . _endpoint = None self . state = fysom . Fysom ( VelesProtocol . FSM_DESCRIPTION , self ) self . _responders = { "handshake" : self . _handshake , "change_power" : self . _changePower } self . _jobs_processed = [ ] self . _last_job_submit_time = 0 self . _dropper_on_timeout = None self . _job_timeout = host . job_timeout self . _drop_on_timeout = ( self . _job_timeout > 0 )