Ejemplo n.º 1
0
 def __init__(self, type, cmd, attrs=[], flags=0):
     self.type = type
     self.cmd = cmd
     self.attrs = attrs
     Message.__init__(self,
                      type,
                      flags=flags,
                      payload=[DcbnlHdr(len=0, type=self.cmd)] + attrs)
Ejemplo n.º 2
0
 def __init__(self, family, cmd, attrs=[], flags=0, version=0):
     self.cmd = cmd
     self.attrs = attrs
     self.family = family
     Message.__init__(self,
                      family,
                      flags=flags,
                      payload=[GenlHdr(self.cmd, version=version)] + attrs)
Ejemplo n.º 3
0
 def __init__(self, family, cmd, attrs=[], flags=0, seq=0):
     self.cmd = cmd
     self.attrs = attrs
     self.family = family
     Message.__init__(self, family, flags=flags,
                      payload=[GenlHdr(self.cmd)]+attrs, seq=0)
Ejemplo n.º 4
0
 def __init__(self, type, cmd, attrs=[], flags=0):
     self.type = type
     self.cmd = cmd
     self.attrs = attrs
     Message.__init__(self, type, flags=flags,
                      payload=[DcbnlHdr(len=0, type=self.cmd)]+attrs)