diff options
author | sjtufs <sjtu_fs@outlook.com> | 2013-09-01 07:31:07 +0800 |
---|---|---|
committer | sjtufs <sjtu_fs@outlook.com> | 2013-09-01 07:31:07 +0800 |
commit | cd5d54a80a157ca816546e2af3a04a1cff14b5cc (patch) | |
tree | a4e41f60ff5bb023874cf712f102d743bf2ded51 /server/piztor/ptp.rst | |
parent | 46dad6a4660d968a4806b108659fad1e43548294 (diff) | |
parent | c2ac1f73431bbcef437aac017465865e5fb086d9 (diff) |
Merge branch 'master' of github.com:Determinant/piztor
Diffstat (limited to 'server/piztor/ptp.rst')
-rw-r--r-- | server/piztor/ptp.rst | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/server/piztor/ptp.rst b/server/piztor/ptp.rst index 6d8ff30..4473e5c 100644 --- a/server/piztor/ptp.rst +++ b/server/piztor/ptp.rst @@ -1,4 +1,4 @@ -Piztor Transmission Protocol v2.0a +Piztor Transmission Protocol v2.0c ---------------------------------- - Pull @@ -255,6 +255,28 @@ Piztor Transmission Protocol v2.0a - ``0x01`` for invalid token - ``0x02`` for insufficient level + - Change Password ``0x08`` + + - Request + + :: + + +-------------+-------?b-------+-------?b-------+ + | AUTH_HEAD | OLD_PASSWORD | NEW_PASSWORD | + +-------------+-----string-----+-----string-----+ + + - Response + + :: + + +--------+ + | STATUS | + +--------+ + + - ``0x00`` for success + - ``0x01`` for invalid token + - ``0x03`` for wrong password + - Push Notification - General Request @@ -293,7 +315,7 @@ Piztor Transmission Protocol v2.0a :: - ----+----8b----+----8b-----+----4b----+ - ... | LATITUDE | LONGITUDE | DEADLINE | - ----+----------+-----------+----int---+ + ----+--1b---+----8b----+----8b-----+----4b----+ + ... | LEVEL | LATITUDE | LONGITUDE | DEADLINE | + ----+-uchar-+----------+-----------+----int---+ |