Ejemplo n.º 1
0
 def __init__(self, usecsma=True, **kwargs):
     """Constructor."""
     # create ARF parameters
     self.nsuccess = None
     self.nfailure = None
     self.timeout  = None
     self.ackcount = {}
     self.arftimer = {}
     self.probation = {}
     self._rates = None
     # create ARF events
     self.dropack = SimEvent()
     self.recvack = SimEvent()
     DCF.__init__(self, usecsma=usecsma, **kwargs)
     # update event names
     self.dropack.name = "%s%s"%(self.name, ".dropack")
     self.recvack.name = "%s%s"%(self.name, ".recvack")
Ejemplo n.º 2
0
 def __init__(self, usecsma=None, **kwargs):
     """Constructor."""
     self.thresh = None
     self._rshduration = None
     DCF.__init__(self, usecsma=False, **kwargs)