diff options
author | Teddy <ted.sybil@gmail.com> | 2013-08-28 09:42:56 +0800 |
---|---|---|
committer | Teddy <ted.sybil@gmail.com> | 2013-08-28 09:42:56 +0800 |
commit | 52d99cd34b1774d06d049ee75a9577d539851d5a (patch) | |
tree | 1767056e9981db2257b967c5274a61cdf4dcd919 /server/piztor/ptp.rst | |
parent | 22ed3f362886b6bdd092102a993b48bc0e65414b (diff) |
ptp v0.5 and std-compliant server
Diffstat (limited to 'server/piztor/ptp.rst')
-rw-r--r-- | server/piztor/ptp.rst | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/server/piztor/ptp.rst b/server/piztor/ptp.rst index 492a44f..3d7a575 100644 --- a/server/piztor/ptp.rst +++ b/server/piztor/ptp.rst @@ -1,4 +1,4 @@ -Piztor Transmission Protocol v0.4a +Piztor Transmission Protocol v0.5 ---------------------------------- - General @@ -91,9 +91,17 @@ Piztor Transmission Protocol v0.4a :: - +--1b---+------?b------+------4b-----+ + +--1b---+------?b------+------2b-----+ | 0x02 | AUTH_HEAD | GROUP_ID | - +-uchar-+--------------+-----int-----+ + +-uchar-+--------------+-------------+ + + ``GROUP_ID``: + + :: + + +---1b----+---1b---+ + | COMP_ID | SEC_ID | + +--uchar--+-uchar--+ - Response @@ -139,7 +147,7 @@ Piztor Transmission Protocol v0.4a ``INFO_KEY`` : - :``0x00``: gid (value is a 4-byte ``long int``) + :``0x00``: gid (value is a 2-byte ``GROUP_ID``) :``0x01``: sex (value is a 1-byte ``boolean``: ``0x01`` for male, ``0x00`` for female) - User Logout |