diff options
author | Teddy <[email protected]> | 2013-08-25 10:10:44 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2013-08-25 10:10:44 +0800 |
commit | 3943a3743bbba32bc7c04bf1c3e85eb775790e2a (patch) | |
tree | 374e4b5a29b008ffd677e29463c285e0a6f9fbb3 | |
parent | d2c150c11ed9522469ecc5fca44b42ef0d81b154 (diff) |
ptp v0.2
-rw-r--r-- | server/ptp.rst | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/server/ptp.rst b/server/ptp.rst index e835bd7..bbbcf7a 100644 --- a/server/ptp.rst +++ b/server/ptp.rst @@ -1,4 +1,4 @@ -Piztor Transmission Protocol v0.1 +Piztor Transmission Protocol v0.2 --------------------------------- - General @@ -7,17 +7,19 @@ Piztor Transmission Protocol v0.1 :: - +---1b---+-------?b--------+ - | OPT ID | SPECIFIC DATA | - +-uchar--+-----------------+ + +---4b---+---1b---+-------?b--------+ + | LENGTH | OPT ID | SPECIFIC DATA | + +--int---+-uchar--+-----------------+ - Response :: - +---1b---+------?b---------+ - | OPT ID | SPECIFIC DATA | - +-uchar--+-----------------+ + +---4b---+---1b---+------?b---------+ + | LENGTH | OPT ID | SPECIFIC DATA | + +--int---+-uchar--+-----------------+ + + Notice that in following sections, ``LENGTH`` part is left out for clarity. - Authentication |