mirror of
https://github.com/SystemRage/py-kms.git
synced 2025-08-09 14:11:49 +08:00
uploaded version 2018_11_15 for python2
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import struct
|
||||
import uuid
|
||||
|
||||
class rpcBase:
|
||||
packetType = {
|
||||
'request': 0,
|
||||
@@ -42,21 +39,7 @@ class rpcBase:
|
||||
self.config = config
|
||||
|
||||
def populate(self):
|
||||
self.requestData = self.parseRequest()
|
||||
self.responseData = self.generateResponse()
|
||||
return self
|
||||
|
||||
def getConfig(self):
|
||||
return self.config
|
||||
|
||||
def getOptions(self):
|
||||
return self.config
|
||||
|
||||
def getData(self):
|
||||
return self.data
|
||||
return self.generateResponse(self.parseRequest())
|
||||
|
||||
def parseRequest(self):
|
||||
return {}
|
||||
|
||||
def getResponse(self):
|
||||
return self.responseData
|
||||
|
Reference in New Issue
Block a user