summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeddy <[email protected]>2013-08-23 07:34:15 +0800
committerTeddy <[email protected]>2013-08-23 07:34:15 +0800
commit2c62d72651b907c2a78eb669dcfafe3e9d2f3be7 (patch)
tree64b84e7d1f4a10f511b61cef129f62dfe22f61e3
parent0bc67f93fff6707b7d8ab13ec8a0b7696fdef187 (diff)
fix in ptp
-rw-r--r--server/ptp.rst16
1 files changed, 8 insertions, 8 deletions
diff --git a/server/ptp.rst b/server/ptp.rst
index bf74d10..ed5151a 100644
--- a/server/ptp.rst
+++ b/server/ptp.rst
@@ -35,7 +35,7 @@ Piztor Transmission Protocol v0.1
+--1b---+-----4b-----+
| 0x00 | USER_TOKEN |
- +-uchar-+----uint----+
+ +-uchar-+-----int----+
- Message Sending
@@ -45,7 +45,7 @@ Piztor Transmission Protocol v0.1
+--1b---+------4b------+------4b-----+
| 0x01 | SENDER_TOKEN | RECEIVER_ID |
- +-uchar-+-----uint-----+----uint-----+
+ +-uchar-+------int-----+-----int-----+
- Response
@@ -63,7 +63,7 @@ Piztor Transmission Protocol v0.1
+--1b---+------4b------+-----8b-----+------8b-----+
| 0x02 | SENDER_TOKEN | LATITUDE | LONGITUDE |
- +-uchar-+-----uint-----+---double---+---double----+
+ +-uchar-+------int-----+---double---+---double----+
- Response
@@ -81,15 +81,15 @@ Piztor Transmission Protocol v0.1
+--1b---+-----4b-------+------4b-----+
| 0x03 | SENDER_TOKEN | GROUP_ID |
- +-uchar-+----uint------+----uint-----+
+ +-uchar-+-----int------+-----int-----+
- Response
::
- +--1b---+-----20b--------+-----+
- | 0x03 | LOCATION_ENTRY | ... |
- +-uchar-+----------------+-----+
+ +--1b---+-----4b----+------20b-------+-----+
+ | 0x03 | ENTRY_CNT | LOCATION_ENTRY | ... |
+ +-uchar-+---int-----+----------------+-----+
Location Entry:
@@ -97,5 +97,5 @@ Piztor Transmission Protocol v0.1
+---4b----+----8b----+-----8b----+
| USER_ID | LATITUDE | LONGITUDE |
- +--uint---+--double--+--double---+
+ +---int---+--double--+--double---+