Пример #1
0
 def pprint(self, nIndent=0):
     indstr = indent * nIndent
     print ''
     print indstr + 'Network-Address:',
     print indstr + indent + 'Time:  ' + unixTimeToFormatStr(self.time)
     print indstr + indent + 'Svcs:  ' + self.services
     print indstr + indent + 'IPv4:  ' + quad_to_str(self.addrQuad)
     print indstr + indent + 'Port:  ' + self.port
Пример #2
0
 def pprint(self, nIndent=0):
    indstr = indent*nIndent
    print ''
    print indstr + 'Network-Address:',
    print indstr + indent + 'Time:  ' + unixTimeToFormatStr(self.time)
    print indstr + indent + 'Svcs:  ' + self.services
    print indstr + indent + 'IPv4:  ' + quad_to_str(self.addrQuad)
    print indstr + indent + 'Port:  ' + self.port
Пример #3
0
 def pprint(self, nIndent=0):
    indstr = indent*nIndent
    print ''
    print indstr + 'Message(version):'
    print indstr + indent + 'Version:  ' + str(self.version)
    print indstr + indent + 'Services: ' + self.services
    print indstr + indent + 'Time:     ' + unixTimeToFormatStr(self.time)
    print indstr + indent + 'AddrTo:  ',;  self.addrRecv.pprintShort()
    print indstr + indent + 'AddrFrom:',;  self.addrFrom.pprintShort()
    print indstr + indent + 'Nonce:    ' + str(self.nonce)
    print indstr + indent + 'SubVer:  ',   self.subver
    print indstr + indent + 'StartHgt: ' + str(self.height0)
Пример #4
0
 def pprint(self, nIndent=0):
    indstr = indent*nIndent
    print ''
    print indstr + 'Message(version):'
    print indstr + indent + 'Version:  ' + str(self.version)
    print indstr + indent + 'Services: ' + self.services
    print indstr + indent + 'Time:     ' + unixTimeToFormatStr(self.time)
    print indstr + indent + 'AddrTo:  ',;  self.addrRecv.pprintShort()
    print indstr + indent + 'AddrFrom:',;  self.addrFrom.pprintShort()
    print indstr + indent + 'Nonce:    ' + str(self.nonce)
    print indstr + indent + 'SubVer:  ',   self.subver
    print indstr + indent + 'StartHgt: ' + str(self.height0)