aboutsummaryrefslogtreecommitdiff
path: root/ParrotProtocol.py
diff options
context:
space:
mode:
Diffstat (limited to 'ParrotProtocol.py')
-rw-r--r--ParrotProtocol.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/ParrotProtocol.py b/ParrotProtocol.py
deleted file mode 100644
index a4e1677..0000000
--- a/ParrotProtocol.py
+++ /dev/null
@@ -1,20 +0,0 @@
-def generateRequest(requestString):
- message = bytearray()
- message.extend(generateHeader(requestString))
- message.extend(bytearray(requestString))
- return message
-
-
-def generateHeader(requestString):
- header = bytearray([0])
- header.append(len(requestString) + 3)
- header.append("\x80")
- return header
-
-
-def getRequest(resource):
- return generateRequest("GET " + resource)
-
-
-def setRequest(resource, args):
- return generateRequest("SET " + resource + "?arg=" + args)