From 3943a3743bbba32bc7c04bf1c3e85eb775790e2a Mon Sep 17 00:00:00 2001 From: Teddy Date: Sun, 25 Aug 2013 10:10:44 +0800 Subject: ptp v0.2 --- server/ptp.rst | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'server') 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 -- cgit v1.2.3-70-g09d2