summaryrefslogtreecommitdiff
path: root/server/piztor/prob.py
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2013-08-26 08:50:47 +0800
committerTeddy <ted.sybil@gmail.com>2013-08-26 08:50:47 +0800
commit7a606637907476942c1f6686137ada6898d7eb14 (patch)
tree1510da0a6764f18a66958ebae6587353ac6e019c /server/piztor/prob.py
parent537d01ac3e78dec6828e068979dcd061e8f68a98 (diff)
purged the repo
Diffstat (limited to 'server/piztor/prob.py')
-rw-r--r--server/piztor/prob.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/piztor/prob.py b/server/piztor/prob.py
index 4ccc957..57ce2fe 100644
--- a/server/piztor/prob.py
+++ b/server/piztor/prob.py
@@ -33,6 +33,14 @@ def gen_request_location(token, username, gid):
return data
+def gen_request_user_info(token, username, uid):
+ length = 4 + 1 + 32 + len(username) + 1 + 4
+ data = pack("!LB32s", length, 0x03, token)
+ data += username
+ data += chr(0)
+ data += pack("!L", uid)
+ return data
+
def send(data):
received = None
try: