def __init__(self): # {{{ Splitter_IMS.__init__(self) #sys.stdout.write(Color.yellow) #print("Using DBS") #sys.stdout.write(Color.none) #self.number_of_monitors = 0 self.peer_number = 0 # {{{ The list of peers in the team. # }}} self.peer_list = [] # }}} # {{{ Destination peers of the chunk, indexed by a chunk # number. Used to find the peer to which a chunk has been # sent. # }}} self.destination_of_chunk = [('0.0.0.0',0)] * self.BUFFER_SIZE #for i in range(self.BUFFER_SIZE): # self.destination_of_chunk.append(('0.0.0.0',0)) self.losses = {} _p_("Initialized") if __debug__: _p_("max_chunk_loss =", self.MAX_CHUNK_LOSS) _p_("mcast_addr =", self.MCAST_ADDR) self.magic_flags = common.DBS
def __init__(self): # {{{ Splitter_IMS.__init__(self) sys.stdout.write(Color.yellow) print("Using DBS") sys.stdout.write(Color.none) #self.number_of_monitors = 0 self.peer_number = 0 # {{{ The list of peers in the team. # }}} self.peer_list = [] # }}} # {{{ Destination peers of the chunk, indexed by a chunk # number. Used to find the peer to which a chunk has been # sent. # }}} self.destination_of_chunk = [('0.0.0.0', 0)] * self.BUFFER_SIZE #for i in range(self.BUFFER_SIZE): # self.destination_of_chunk.append(('0.0.0.0',0)) self.losses = {} print("DBS: max_chunk_loss =", self.MAX_CHUNK_LOSS) print("DBS: mcast_addr =", self.MCAST_ADDR)