diff options
Diffstat (limited to 'server/ptp.rst')
-rw-r--r-- | server/ptp.rst | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/server/ptp.rst b/server/ptp.rst index 93f03ea..bf74d10 100644 --- a/server/ptp.rst +++ b/server/ptp.rst @@ -9,7 +9,7 @@ Piztor Transmission Protocol v0.1 +---1b---+-------?b--------+ | OPT ID | SPECIFIC DATA | - +--------+-----------------+ + +-uchar--+-----------------+ - Response @@ -17,7 +17,7 @@ Piztor Transmission Protocol v0.1 +---1b---+------?b---------+ | OPT ID | SPECIFIC DATA | - +--------+-----------------+ + +-uchar--+-----------------+ - Authentication @@ -25,17 +25,17 @@ Piztor Transmission Protocol v0.1 :: - +--1b--+-----?b------+-----?b-----+ - | 0x00 | USERNAME | PASSWORD | - +------+-------------+------------+ + +--1b---+-----?b------+-----?b-----+ + | 0x00 | USERNAME | PASSWORD | + +-uchar-+-------------+------------+ - Response :: - +--1b--+-----4b-----+ - | 0x00 | USER_TOKEN | - +------+------------+ + +--1b---+-----4b-----+ + | 0x00 | USER_TOKEN | + +-uchar-+----uint----+ - Message Sending @@ -43,17 +43,17 @@ Piztor Transmission Protocol v0.1 :: - +--1b--+------4b------+------4b-----+ - | 0x01 | SENDER_TOKEN | RECEIVER_ID | - +------+--------------+-------------+ + +--1b---+------4b------+------4b-----+ + | 0x01 | SENDER_TOKEN | RECEIVER_ID | + +-uchar-+-----uint-----+----uint-----+ - Response :: - +--1b--+----?b----+ - | 0x01 | RESERVED | - +------+----------+ + +--1b---+----?b----+ + | 0x01 | RESERVED | + +-uchar-+----------+ - Location Update @@ -61,17 +61,17 @@ Piztor Transmission Protocol v0.1 :: - +--1b--+------4b------+-----8b-----+------8b-----+ - | 0x02 | SENDER_TOKEN | LATITUDE | LONGITUDE | - +------+--------------+------------+-------------+ + +--1b---+------4b------+-----8b-----+------8b-----+ + | 0x02 | SENDER_TOKEN | LATITUDE | LONGITUDE | + +-uchar-+-----uint-----+---double---+---double----+ - Response :: - +--1b--+----?b----+ - | 0x02 | RESERVED | - +------+----------+ + +--1b---+----?b----+ + | 0x02 | RESERVED | + +-uchar-+----------+ - Location Information @@ -79,17 +79,17 @@ Piztor Transmission Protocol v0.1 :: - +--2b--+-----4b-------+------4b-----+ - | 0x03 | SENDER_TOKEN | GROUP_ID | - +------+--------------+-------------+ + +--1b---+-----4b-------+------4b-----+ + | 0x03 | SENDER_TOKEN | GROUP_ID | + +-uchar-+----uint------+----uint-----+ - Response :: - +--2b--+-----20b--------+-----+ - | 0x03 | LOCATION_ENTRY | ... | - +------+----------------+-----+ + +--1b---+-----20b--------+-----+ + | 0x03 | LOCATION_ENTRY | ... | + +-uchar-+----------------+-----+ Location Entry: @@ -97,5 +97,5 @@ Piztor Transmission Protocol v0.1 +---4b----+----8b----+-----8b----+ | USER_ID | LATITUDE | LONGITUDE | - +---------+----------+-----------+ + +--uint---+--double--+--double---+ |