MCPcopy Create free account
hub / github.com/ActiveState/code / __init__

Method __init__

recipes/Python/577649_dhcp_query/recipe-577649.py:57–67  ·  view source on GitHub ↗
(self, data, transID)

Source from the content-addressed store, hash-verified

55
56class DHCPOffer:
57 def __init__(self, data, transID):
58 self.data = data
59 self.transID = transID
60 self.offerIP = ''
61 self.nextServerIP = ''
62 self.DHCPServerIdentifier = ''
63 self.leaseTime = ''
64 self.router = ''
65 self.subnetMask = ''
66 self.DNS = []
67 self.unpack()
68
69 def unpack(self):
70 if self.data[4:8] == self.transID :

Callers

nothing calls this directly

Calls 1

unpackMethod · 0.95

Tested by

no test coverage detected