From 2c62d72651b907c2a78eb669dcfafe3e9d2f3be7 Mon Sep 17 00:00:00 2001 From: Teddy Date: Fri, 23 Aug 2013 07:34:15 +0800 Subject: fix in ptp --- server/ptp.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'server/ptp.rst') 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---+ -- cgit v1.2.3-70-g09d2