mirror of
https://github.com/Py-KMS-Organization/py-kms.git
synced 2025-05-18 00:54:51 -04:00
uploaded version 2018_11_15 for python2
This commit is contained in:
parent
73f66ea40f
commit
b0a8ff21fb
18 changed files with 1574 additions and 791 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue