Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)