uploaded version 2018_11_15 for python2

This commit is contained in:
Matteo ℱan 2018-11-14 23:09:19 +01:00 committed by GitHub
parent 73f66ea40f
commit b0a8ff21fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 1574 additions and 791 deletions

View file

@ -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